1 8 9 package net.sourceforge.chaperon.common; 10 11 17 public interface IntegerCollection 18 { 19 26 public int add(int value); 27 28 33 public void add(IntegerCollection collection); 34 35 40 public void add(int[] array); 41 42 47 public void remove(int index); 48 49 55 public void set(int index, int value); 56 57 64 public int get(int index); 65 66 71 public int getCount(); 72 73 80 public int indexOf(int value); 81 82 89 public boolean contains(int value); 90 91 96 public void removeValue(int value); 97 98 103 public boolean isEmpty(); 104 105 110 public int pop(); 111 112 117 public void push(int value); 118 119 124 public void push(int[] values); 125 126 131 public int peek(); 132 133 136 public void clear(); 137 138 144 public void swap(int index1, int index2); 145 146 151 public String toString(); 152 } 153 | Popular Tags |