public class TDoubleSetDecorator extends AbstractSet<Double > implements Set <Double >, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected TDoubleSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TDoubleSetDecorator()
FOR EXTERNALIZATION ONLY!!
|
TDoubleSetDecorator(TDoubleSet
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Double
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.
|
TDoubleSet |
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 TDoubleSet_set
public TDoubleSetDecorator()
public TDoubleSetDecorator(TDoubleSetset)
set - the
TDoubleSet to wrap.
public TDoubleSetgetSet()
public boolean add(Doublevalue)
add in interface
Collection<Double>
add in interface
Set<Double>
add in class
AbstractCollection<Double>
value - true if the set was modified by the insertion
public boolean equals(Objectother)
equals in interface
Collection<Double>
equals in interface
Set<Double>
equals in class
AbstractSet<Double>
other - an
Object value
public void clear()
public boolean remove(Objectvalue)
remove in interface
Collection<Double>
remove in interface
Set<Double>
remove in class
AbstractCollection<Double>
value - an
Object value
public int size()
size in interface
Collection<Double>
size in interface
Set<Double>
size in class
AbstractCollection<Double>
public boolean isEmpty()
isEmpty in interface
Collection<Double>
isEmpty in interface
Set<Double>
isEmpty in class
AbstractCollection<Double>
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