public class DBObjectSet<T extends DBObject>
extends java.lang.Object
This Set implementation is not synchronized, use
Collections.synchronizedSet if you require thread safety.
DBUtil.getNameComparator();,
DBUtil.getTypeComparator();| Constructor and Description |
|---|
DBObjectSet()
Constructs a new Set for uniquely storing DBObjects in name and type order
whilst guarenteeing not to "build" the properties of the object using the
equals method.
|
DBObjectSet(java.util.Collection<? extends T> c)
Constructs a new set containing the elements in the specified
collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
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() |
<E> E[] |
toArray(E[] a) |
java.lang.String |
toString() |
public DBObjectSet()
When ordering the objects, the name will be considered before the type.
public DBObjectSet(java.util.Collection<? extends T> c)
c - the collection whose elements are to be placed into this setpublic java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface java.util.Set<T>public int size()
size in interface java.util.Collection<T>size in interface java.util.Set<T>public boolean add(T e)
add in interface java.util.Collection<T>add in interface java.util.Set<T>public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>addAll in interface java.util.Set<T>public void clear()
clear in interface java.util.Collection<T>clear in interface java.util.Set<T>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>contains in interface java.util.Set<T>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>containsAll in interface java.util.Set<T>public boolean isEmpty()
isEmpty in interface java.util.Collection<T>isEmpty in interface java.util.Set<T>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>remove in interface java.util.Set<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>removeAll in interface java.util.Set<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>retainAll in interface java.util.Set<T>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>toArray in interface java.util.Set<T>public <E> E[] toArray(E[] a)
toArray in interface java.util.Collection<T>toArray in interface java.util.Set<T>public boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<T>equals in interface java.util.Set<T>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<T>hashCode in interface java.util.Set<T>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object