public abstract class DistinctRootsCollection<T>
extends java.lang.Object
implements java.util.Collection<T>
Constructor and Description |
---|
DistinctRootsCollection() |
DistinctRootsCollection(java.util.Collection<? extends T> collection) |
DistinctRootsCollection(T [] collection) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T o) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
protected abstract boolean |
isAncestor(T ancestor,
T t) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object [] |
toArray() |
<T> T [] |
toArray(T [] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DistinctRootsCollection()
public DistinctRootsCollection(java.util.Collection<? extends T> collection)
public DistinctRootsCollection(T [] collection)
public 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>
public java.util.Iterator<T> iterator()
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>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<T>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<T>
public boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<T>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<T>
public void clear()
clear
in interface java.util.Collection<T>