link start!
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
public interface Bag extends Collection {
|
||||
boolean add(Object obj);
|
||||
|
||||
boolean add(Object obj, int i);
|
||||
|
||||
boolean containsAll(Collection collection);
|
||||
|
||||
int getCount(Object obj);
|
||||
|
||||
Iterator iterator();
|
||||
|
||||
boolean remove(Object obj);
|
||||
|
||||
boolean remove(Object obj, int i);
|
||||
|
||||
boolean removeAll(Collection collection);
|
||||
|
||||
boolean retainAll(Collection collection);
|
||||
|
||||
int size();
|
||||
|
||||
Set uniqueSet();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface BidiMap extends IterableMap {
|
||||
Object getKey(Object obj);
|
||||
|
||||
BidiMap inverseBidiMap();
|
||||
|
||||
MapIterator mapIterator();
|
||||
|
||||
Object put(Object obj, Object obj2);
|
||||
|
||||
Object removeValue(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface BoundedCollection extends Collection {
|
||||
boolean isFull();
|
||||
|
||||
int maxSize();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface BoundedMap extends Map {
|
||||
boolean isFull();
|
||||
|
||||
int maxSize();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface Buffer extends Collection {
|
||||
Object get();
|
||||
|
||||
Object remove();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface Closure {
|
||||
void execute(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface Factory {
|
||||
Object create();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface IterableMap extends Map {
|
||||
MapIterator mapIterator();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface KeyValue {
|
||||
Object getKey();
|
||||
|
||||
Object getValue();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface MapIterator extends Iterator {
|
||||
Object getKey();
|
||||
|
||||
Object getValue();
|
||||
|
||||
boolean hasNext();
|
||||
|
||||
Object next();
|
||||
|
||||
void remove();
|
||||
|
||||
Object setValue(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
public interface MultiMap extends Map {
|
||||
boolean containsValue(Object obj);
|
||||
|
||||
Object get(Object obj);
|
||||
|
||||
Object put(Object obj, Object obj2);
|
||||
|
||||
Object remove(Object obj);
|
||||
|
||||
Object remove(Object obj, Object obj2);
|
||||
|
||||
int size();
|
||||
|
||||
Collection values();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface OrderedBidiMap extends BidiMap, OrderedMap {
|
||||
BidiMap inverseBidiMap();
|
||||
|
||||
OrderedBidiMap inverseOrderedBidiMap();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface OrderedIterator extends Iterator {
|
||||
boolean hasPrevious();
|
||||
|
||||
Object previous();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface OrderedMap extends IterableMap {
|
||||
Object firstKey();
|
||||
|
||||
Object lastKey();
|
||||
|
||||
Object nextKey(Object obj);
|
||||
|
||||
OrderedMapIterator orderedMapIterator();
|
||||
|
||||
Object previousKey(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface OrderedMapIterator extends MapIterator, OrderedIterator {
|
||||
boolean hasPrevious();
|
||||
|
||||
Object previous();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface Predicate {
|
||||
boolean evaluate(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface PriorityQueue {
|
||||
void clear();
|
||||
|
||||
void insert(Object obj);
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
Object peek();
|
||||
|
||||
Object pop();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public interface ResettableIterator extends Iterator {
|
||||
void reset();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.ListIterator;
|
||||
|
||||
public interface ResettableListIterator extends ListIterator, ResettableIterator {
|
||||
void reset();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
public interface SortedBag extends Bag {
|
||||
Comparator comparator();
|
||||
|
||||
Object first();
|
||||
|
||||
Object last();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
import java.util.SortedMap;
|
||||
|
||||
public interface SortedBidiMap extends OrderedBidiMap, SortedMap {
|
||||
BidiMap inverseBidiMap();
|
||||
|
||||
SortedBidiMap inverseSortedBidiMap();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface Transformer {
|
||||
Object transform(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.apache.commons.collections;
|
||||
|
||||
public interface Unmodifiable {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.commons.collections.functors;
|
||||
|
||||
import org.apache.commons.collections.Predicate;
|
||||
|
||||
public interface PredicateDecorator extends Predicate {
|
||||
Predicate[] getPredicates();
|
||||
}
|
||||
Reference in New Issue
Block a user