public class FluentHashSet<E>
extends java.util.LinkedHashSet<E>
LinkedHashSet
that supports fluent API.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
FluentHashSet() |
FluentHashSet(java.util.Collection<? extends E> c) |
FluentHashSet(E... elements) |
FluentHashSet(int initialCapacity) |
FluentHashSet(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
FluentHashSet<E> |
delete(java.lang.Object o)
Fluent method to remove the specified element from this set.
|
FluentHashSet<E> |
with(E e)
Fluent method to add the specified element to this set.
|
FluentHashSet<E> |
withAll(java.util.Collection<? extends E> c)
Fluent method to add the elements from the specified collection to this
set.
|
FluentHashSet<E> |
withAll(E... elements)
Fluent method to add the elements to this set.
|
add, clear, clone, contains, isEmpty, iterator, remove, size
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
public FluentHashSet()
public FluentHashSet(java.util.Collection<? extends E> c)
public FluentHashSet(E... elements)
public FluentHashSet(int initialCapacity, float loadFactor)
public FluentHashSet(int initialCapacity)
public FluentHashSet<E> with(E e)
public FluentHashSet<E> withAll(java.util.Collection<? extends E> c)
public FluentHashSet<E> withAll(E... elements)
public FluentHashSet<E> delete(java.lang.Object o)