Class SortedListSet<A>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<A>
-
- org.ujmp.core.collections.composite.SortedListSet<A>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<A>
,java.util.Collection<A>
,java.util.List<A>
,java.util.Set<A>
,java.util.SortedSet<A>
,ListSet<A>
public class SortedListSet<A> extends java.util.AbstractList<A> implements java.util.SortedSet<A>, ListSet<A>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<A>
list
private static long
serialVersionUID
private java.util.SortedSet<A>
set
-
Constructor Summary
Constructors Constructor Description SortedListSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, A element)
boolean
add(A e)
boolean
addAll(int index, java.util.Collection<? extends A> c)
boolean
addAll(java.util.Collection<? extends A> c)
void
clear()
java.util.Comparator<? super A>
comparator()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
private void
createList()
A
first()
A
get(int index)
java.util.SortedSet<A>
headSet(A toElement)
int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<A>
iterator()
A
last()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<A>
listIterator()
java.util.ListIterator<A>
listIterator(int index)
A
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
A
set(int index, A element)
int
size()
java.util.Spliterator<A>
spliterator()
java.util.List<A>
subList(int fromIndex, int toIndex)
java.util.SortedSet<A>
subSet(A fromElement, A toElement)
java.util.SortedSet<A>
tailSet(A fromElement)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
set
private final java.util.SortedSet<A> set
-
list
private final java.util.List<A> list
-
-
Method Detail
-
spliterator
public java.util.Spliterator<A> spliterator()
- Specified by:
spliterator
in interfacejava.util.Collection<A>
- Specified by:
spliterator
in interfacejava.lang.Iterable<A>
- Specified by:
spliterator
in interfacejava.util.List<A>
- Specified by:
spliterator
in interfaceListSet<A>
- Specified by:
spliterator
in interfacejava.util.Set<A>
- Specified by:
spliterator
in interfacejava.util.SortedSet<A>
-
comparator
public java.util.Comparator<? super A> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<A>
-
headSet
public java.util.SortedSet<A> headSet(A toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<A>
-
subSet
public java.util.SortedSet<A> subSet(A fromElement, A toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<A>
-
tailSet
public java.util.SortedSet<A> tailSet(A fromElement)
- Specified by:
tailSet
in interfacejava.util.SortedSet<A>
-
add
public boolean add(A e)
-
addAll
public boolean addAll(java.util.Collection<? extends A> c)
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<A> iterator()
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
size
public int size()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public void add(int index, A element)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends A> c)
-
get
public A get(int index)
-
indexOf
public int indexOf(java.lang.Object o)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
listIterator
public java.util.ListIterator<A> listIterator()
-
listIterator
public java.util.ListIterator<A> listIterator(int index)
-
remove
public A remove(int index)
-
subList
public java.util.List<A> subList(int fromIndex, int toIndex)
-
createList
private void createList()
-
-