T
- the generic typepublic class EmptyCollection<T>
extends java.lang.Object
implements java.util.Collection<T>
Constructor and Description |
---|
EmptyCollection() |
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.
|
static <T> java.util.Collection<T> |
newInstance()
New instance.
|
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.
|
<T> T[] |
toArray(T[] a)
To array.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean add(T e)
add
in interface java.util.Collection<T>
e
- the epublic boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
c
- the cpublic void clear()
clear
in interface java.util.Collection<T>
public boolean contains(java.lang.Object o)
contains
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 isEmpty()
isEmpty
in interface java.util.Collection<T>
public java.util.Iterator<T> iterator()
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<T>
o
- the opublic 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 int size()
size
in interface java.util.Collection<T>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<T>
T
- the generic typea
- the apublic static <T> java.util.Collection<T> newInstance()
T
- the generic typeCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa