E - the type of element stored in this set.public class StreamableHashSet<E> extends HashSet<E> implements Streamable
HashSet extension that can be streamed. The values in the set must also be of
streamable types.Streamable,
Serialized FormStreamable.Closure| Constructor and Description |
|---|
StreamableHashSet()
Constructs an empty hash set with the default number of hash buckets.
|
StreamableHashSet(int buckets,
float loadFactor)
Constructs an empty hash set with the specified number of hash buckets.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> StreamableHashSet<E> |
newSet()
Creates an empty StreamableHashSet with the default number of hash buckets.
|
void |
readObject(ObjectInputStream in)
Reads our custom streamable fields.
|
void |
writeObject(ObjectOutputStream out)
Writes our custom streamable fields.
|
add, clear, clone, contains, isEmpty, iterator, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringaddAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic StreamableHashSet(int buckets,
float loadFactor)
public StreamableHashSet()
public static <E> StreamableHashSet<E> newSet()
public void writeObject(ObjectOutputStream out) throws IOException
IOExceptionpublic void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2015. All rights reserved.