java.io.Externalizable, java.io.Serializable, java.lang.Iterable<java.lang.Long>, java.util.Collection<java.lang.Long>, java.util.Set<java.lang.Long>public class TLongSetDecorator
extends java.util.AbstractSet<java.lang.Long>
implements java.util.Set<java.lang.Long>, java.io.Externalizable
| Modifier and Type | Field | Description |
|---|---|---|
protected TLongSet |
_set |
the wrapped primitive set
|
| Constructor | Description |
|---|---|
TLongSetDecorator() |
FOR EXTERNALIZATION ONLY!!
|
TLongSetDecorator(TLongSet set) |
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(java.lang.Long value) |
Inserts a value into the set.
|
void |
clear() |
Empties the set.
|
boolean |
contains(java.lang.Object o) |
|
boolean |
equals(java.lang.Object other) |
Compares this set with another set for equality of their stored
entries.
|
TLongSet |
getSet() |
Returns a reference to the set wrapped by this decorator.
|
boolean |
isEmpty() |
Indicates whether set has any entries.
|
java.util.Iterator<java.lang.Long> |
iterator() |
Creates an iterator over the values of the set.
|
void |
readExternal(java.io.ObjectInput in) |
|
boolean |
remove(java.lang.Object value) |
Deletes a value from the set.
|
int |
size() |
Returns the number of entries in the set.
|
void |
writeExternal(java.io.ObjectOutput out) |
addAll, containsAll, retainAll, toArray, toArray, toStringprotected TLongSet _set
public TLongSetDecorator()
public TLongSetDecorator(TLongSet set)
set - the TLongSet to wrap.public TLongSet getSet()
public boolean add(java.lang.Long value)
add in interface java.util.Collection<java.lang.Long>add in interface java.util.Set<java.lang.Long>add in class java.util.AbstractCollection<java.lang.Long>value - true if the set was modified by the insertionpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<java.lang.Long>equals in interface java.util.Set<java.lang.Long>equals in class java.util.AbstractSet<java.lang.Long>other - an Object valuepublic void clear()
clear in interface java.util.Collection<java.lang.Long>clear in interface java.util.Set<java.lang.Long>clear in class java.util.AbstractCollection<java.lang.Long>public boolean remove(java.lang.Object value)
remove in interface java.util.Collection<java.lang.Long>remove in interface java.util.Set<java.lang.Long>remove in class java.util.AbstractCollection<java.lang.Long>value - an Object valuepublic java.util.Iterator<java.lang.Long> iterator()
iterator in interface java.util.Collection<java.lang.Long>iterator in interface java.lang.Iterable<java.lang.Long>iterator in interface java.util.Set<java.lang.Long>iterator in class java.util.AbstractCollection<java.lang.Long>public int size()
size in interface java.util.Collection<java.lang.Long>size in interface java.util.Set<java.lang.Long>size in class java.util.AbstractCollection<java.lang.Long>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Long>isEmpty in interface java.util.Set<java.lang.Long>isEmpty in class java.util.AbstractCollection<java.lang.Long>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<java.lang.Long>contains in interface java.util.Set<java.lang.Long>contains in class java.util.AbstractCollection<java.lang.Long>public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException