|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
net.mazewar.SortedMultiSet
public class SortedMultiSet
An implementation of the SortedSet
interface that allows
multiple "equivalent" objects to be stored, unlike TreeSet
.
Constructor Summary | |
---|---|
SortedMultiSet()
|
|
SortedMultiSet(java.util.Collection c)
|
|
SortedMultiSet(java.util.Comparator c)
|
|
SortedMultiSet(java.util.SortedSet s)
|
Method Summary | |
---|---|
boolean |
add(java.lang.Object o1)
|
boolean |
addAll(java.util.Collection c)
|
java.util.Comparator |
comparator()
|
boolean |
containsAll(java.util.Collection c)
|
java.lang.Object |
first()
|
java.util.SortedSet |
headSet(java.lang.Object toElement)
|
java.lang.Object |
last()
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
java.util.SortedSet |
subSet(java.lang.Object fromElement,
java.lang.Object toElement)
|
java.util.SortedSet |
tailSet(java.lang.Object fromElement)
|
Methods inherited from class java.util.LinkedList |
---|
add, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
---|
iterator |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
isEmpty, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
clear, contains, equals, hashCode, isEmpty, iterator, remove, size, toArray, toArray |
Methods inherited from interface java.util.List |
---|
equals, hashCode, isEmpty, iterator, listIterator, subList |
Methods inherited from interface java.util.Deque |
---|
iterator |
Constructor Detail |
---|
public SortedMultiSet()
public SortedMultiSet(java.util.Collection c)
public SortedMultiSet(java.util.Comparator c)
public SortedMultiSet(java.util.SortedSet s)
Method Detail |
---|
public boolean add(java.lang.Object o1)
add
in interface java.util.Collection
add
in interface java.util.Deque
add
in interface java.util.List
add
in interface java.util.Queue
add
in interface java.util.Set
add
in class java.util.LinkedList
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in interface java.util.Set
addAll
in class java.util.LinkedList
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
containsAll
in interface java.util.Set
containsAll
in class java.util.AbstractCollection
public java.util.Comparator comparator()
comparator
in interface java.util.SortedSet
public java.lang.Object first()
first
in interface java.util.SortedSet
public java.lang.Object last()
last
in interface java.util.SortedSet
public java.util.SortedSet headSet(java.lang.Object toElement)
headSet
in interface java.util.SortedSet
public java.util.SortedSet subSet(java.lang.Object fromElement, java.lang.Object toElement)
subSet
in interface java.util.SortedSet
public java.util.SortedSet tailSet(java.lang.Object fromElement)
tailSet
in interface java.util.SortedSet
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in interface java.util.Set
removeAll
in class java.util.AbstractCollection
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in interface java.util.Set
retainAll
in class java.util.AbstractCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |