public class TLongSetDecorator extends AbstractSet<Long > implements Set <Long >, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected TLongSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TLongSetDecorator()
FOR EXTERNALIZATION ONLY!!
|
TLongSetDecorator(TLongSet
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Long
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
boolean |
contains(Object
|
boolean |
equals(Object
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.
|
Iterator |
iterator()
Creates an iterator over the values of the set.
|
void |
readExternal(ObjectInput
|
boolean |
remove(Object
Deletes a value from the set.
|
int |
size()
Returns the number of entries in the set.
|
void |
writeExternal(ObjectOutput
|
hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, hashCode, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected TLongSet_set
public TLongSetDecorator()
public TLongSetDecorator(TLongSetset)
set - the
TLongSet to wrap.
public TLongSetgetSet()
public boolean add(Longvalue)
add in interface
Collection<Long>
add in interface
Set<Long>
add in class
AbstractCollection<Long>
value - true if the set was modified by the insertion
public boolean equals(Objectother)
equals in interface
Collection<Long>
equals in interface
Set<Long>
equals in class
AbstractSet<Long>
other - an
Object value
public void clear()
public boolean remove(Objectvalue)
remove in interface
Collection<Long>
remove in interface
Set<Long>
remove in class
AbstractCollection<Long>
value - an
Object value
public int size()
size in interface
Collection<Long>
size in interface
Set<Long>
size in class
AbstractCollection<Long>
public boolean isEmpty()
isEmpty in interface
Collection<Long>
isEmpty in interface
Set<Long>
isEmpty in class
AbstractCollection<Long>
public boolean contains(Objecto)
public void readExternal(ObjectInputin) throws IOException , ClassNotFoundException
readExternal in interface
Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutputout) throws IOException
writeExternal in interface
Externalizable
IOException