1 24 25 package com.mckoi.util; 26 27 37 38 public interface IntegerListInterface { 39 40 47 void setImmutable(); 48 49 52 boolean isImmutable(); 53 54 57 int size(); 58 59 63 int get(int pos); 64 65 70 void add(int val, int pos); 71 72 75 void add(int val); 76 77 82 int remove(int pos); 83 84 90 boolean contains(int val); 91 92 95 void insertSort(int val); 96 97 103 boolean uniqueInsertSort(int val); 104 105 111 boolean removeSort(int val); 112 113 120 124 boolean contains(Object key, IndexComparator c); 125 126 133 void insertSort(Object key, int val, IndexComparator c); 134 135 140 int removeSort(Object key, int val, IndexComparator c); 141 142 147 int searchLast(Object key, IndexComparator c); 148 149 154 int searchFirst(Object key, IndexComparator c); 155 156 158 162 IntegerIterator iterator(int start_offset, int end_offset); 163 164 168 IntegerIterator iterator(); 169 170 } 171 | Popular Tags |