T
- the generic typepublic class SortedCollection<T>
extends java.lang.Object
implements java.util.Collection<T>
Constructor and Description |
---|
SortedCollection()
Instantiates a new sorted collection.
|
SortedCollection(java.util.Collection<T> col)
Instantiates a new sorted collection.
|
SortedCollection(java.util.Comparator<T> comp)
Instantiates a new sorted collection.
|
SortedCollection(java.util.Iterator<T> iter)
Instantiates a new sorted collection.
|
SortedCollection(java.util.Iterator<T> iter,
java.util.Comparator<T> comp)
Instantiates a new sorted collection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e)
Adds the.
|
boolean |
addAll(java.util.Collection<? extends T> c)
Adds the all.
|
void |
clear()
Clear.
|
boolean |
contains(java.lang.Object o)
Contains.
|
boolean |
containsAll(java.util.Collection<?> c)
Contains all.
|
boolean |
isEmpty()
Checks if is empty.
|
java.util.Iterator<T> |
iterator()
Iterator.
|
boolean |
remove(java.lang.Object o)
Removes the.
|
boolean |
removeAll(java.util.Collection<?> c)
Removes the all.
|
boolean |
retainAll(java.util.Collection<?> c)
Retain all.
|
int |
size()
Size.
|
java.lang.Object[] |
toArray()
To array.
|
<Z> Z[] |
toArray(Z[] a)
To array.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SortedCollection()
C
- the generic typepublic SortedCollection(java.util.Comparator<T> comp)
comp
- the comppublic SortedCollection(java.util.Collection<T> col)
col
- the colpublic SortedCollection(java.util.Iterator<T> iter)
iter
- the iterpublic int size()
size
in interface java.util.Collection<T>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<T>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<T>
o
- the opublic java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
public <Z> Z[] toArray(Z[] a)
toArray
in interface java.util.Collection<T>
Z
- the generic typea
- the apublic boolean add(T e)
add
in interface java.util.Collection<T>
e
- the epublic boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<T>
o
- the opublic boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<T>
c
- the cpublic boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
c
- the cpublic boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<T>
c
- the cpublic boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<T>
c
- the cpublic void clear()
clear
in interface java.util.Collection<T>
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa