Class SortedListSet<A>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<A>
org.ujmp.core.collections.composite.SortedListSet<A>
- All Implemented Interfaces:
Serializable
,Iterable<A>
,Collection<A>
,List<A>
,Set<A>
,SortedSet<A>
,ListSet<A>
public class SortedListSet<A>
extends AbstractList<A>
implements SortedSet<A>, ListSet<A>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends A> c) boolean
addAll
(Collection<? extends A> c) void
clear()
Comparator<? super A>
boolean
boolean
containsAll
(Collection<?> c) private void
first()
get
(int index) int
boolean
isEmpty()
iterator()
last()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.util.AbstractList
equals, hashCode, removeRange
Methods inherited from class java.util.AbstractCollection
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
set
-
list
-
-
Constructor Details
-
SortedListSet
public SortedListSet()
-
-
Method Details
-
spliterator
- Specified by:
spliterator
in interfaceCollection<A>
- Specified by:
spliterator
in interfaceIterable<A>
- Specified by:
spliterator
in interfaceList<A>
- Specified by:
spliterator
in interfaceListSet<A>
- Specified by:
spliterator
in interfaceSet<A>
- Specified by:
spliterator
in interfaceSortedSet<A>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<A>
-
first
-
headSet
-
last
-
subSet
-
tailSet
-
add
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<A>
- Specified by:
containsAll
in interfaceList<A>
- Specified by:
containsAll
in interfaceSet<A>
- Overrides:
containsAll
in classAbstractCollection<A>
-
isEmpty
public boolean isEmpty() -
iterator
-
remove
-
removeAll
-
retainAll
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
addAll
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<A>
- Overrides:
lastIndexOf
in classAbstractList<A>
-
listIterator
- Specified by:
listIterator
in interfaceList<A>
- Overrides:
listIterator
in classAbstractList<A>
-
listIterator
- Specified by:
listIterator
in interfaceList<A>
- Overrides:
listIterator
in classAbstractList<A>
-
remove
-
set
-
subList
-
createList
private void createList()
-