1 package prefuse.util.collections; 2 3 13 public abstract class IntIterator extends AbstractLiteralIterator { 14 15 18 public Object next() { 19 return new Integer (nextInt()); 20 } 21 22 25 public boolean isDoubleSupported() { 26 return true; 27 } 28 29 32 public boolean isFloatSupported() { 33 return true; 34 } 35 36 39 public boolean isIntSupported() { 40 return true; 41 } 42 43 46 public boolean isLongSupported() { 47 return true; 48 } 49 50 53 public double nextDouble() { 54 return nextInt(); 55 } 56 57 60 public float nextFloat() { 61 return nextInt(); 62 } 63 64 67 public long nextLong() { 68 return nextInt(); 69 } 70 71 74 public abstract int nextInt(); 75 76 } | Popular Tags |