public class TByteHashSetDecorator
extends java.util.AbstractSet<java.lang.Byte>
implements java.util.Set<java.lang.Byte>, java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected TByteHashSet |
_set
the wrapped primitive set
|
| Constructor and Description |
|---|
TByteHashSetDecorator()
FOR EXTERNALIZATION ONLY!!
|
TByteHashSetDecorator(TByteHashSet set)
Creates a wrapper that decorates the specified primitive set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Byte value)
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
TByteHashSetDecorator |
clone()
Clones the underlying trove collection and returns the clone wrapped in a new
decorator instance.
|
boolean |
equals(java.lang.Object other)
Compares this set with another set for equality of their stored
entries.
|
TByteHashSet |
getSet()
Returns a reference to the set wrapped by this decorator.
|
boolean |
isEmpty()
Indicates whether set has any entries.
|
java.util.Iterator<java.lang.Byte> |
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.
|
protected byte |
unwrap(java.lang.Object value)
Unwraps a value
|
protected java.lang.Byte |
wrap(byte k)
Wraps a value
|
void |
writeExternal(java.io.ObjectOutput out) |
addAll, contains, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitprotected TByteHashSet _set
public TByteHashSetDecorator()
public TByteHashSetDecorator(TByteHashSet set)
public TByteHashSet getSet()
public TByteHashSetDecorator clone()
clone in class java.lang.Objectpublic boolean add(java.lang.Byte value)
add in interface java.util.Collection<java.lang.Byte>add in interface java.util.Set<java.lang.Byte>add in class java.util.AbstractCollection<java.lang.Byte>value - true if the set was modified by the insertionpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<java.lang.Byte>equals in interface java.util.Set<java.lang.Byte>equals in class java.util.AbstractSet<java.lang.Byte>other - an Object valuepublic void clear()
clear in interface java.util.Collection<java.lang.Byte>clear in interface java.util.Set<java.lang.Byte>clear in class java.util.AbstractCollection<java.lang.Byte>public boolean remove(java.lang.Object value)
remove in interface java.util.Collection<java.lang.Byte>remove in interface java.util.Set<java.lang.Byte>remove in class java.util.AbstractCollection<java.lang.Byte>value - an Object valuepublic java.util.Iterator<java.lang.Byte> iterator()
iterator in interface java.lang.Iterable<java.lang.Byte>iterator in interface java.util.Collection<java.lang.Byte>iterator in interface java.util.Set<java.lang.Byte>iterator in class java.util.AbstractCollection<java.lang.Byte>public int size()
size in interface java.util.Collection<java.lang.Byte>size in interface java.util.Set<java.lang.Byte>size in class java.util.AbstractCollection<java.lang.Byte>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Byte>isEmpty in interface java.util.Set<java.lang.Byte>isEmpty in class java.util.AbstractCollection<java.lang.Byte>protected java.lang.Byte wrap(byte k)
k - value in the underlying setprotected byte unwrap(java.lang.Object value)
value - wrapped valuepublic 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.IOExceptionGNU Trove is copyright © 2001-2009 Eric D. Friedman. All Rights Reserved.