public class FluentHashSet<E> extends HashSet<E>
HashSet
that supports fluent API.Constructor and Description |
---|
FluentHashSet() |
FluentHashSet(Collection<? extends E> c) |
FluentHashSet(E... elements) |
FluentHashSet(int initialCapacity) |
FluentHashSet(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
FluentHashSet<E> |
delete(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(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
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
public FluentHashSet()
public FluentHashSet(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(Collection<? extends E> c)
public FluentHashSet<E> withAll(E... elements)
public FluentHashSet<E> delete(Object o)
Copyright © 2014. All rights reserved.