Class FluentHashSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<E>
-
- com.amazonaws.services.dynamodbv2.document.utils.FluentHashSet<E>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<E>,Collection<E>,Set<E>
public class FluentHashSet<E> extends LinkedHashSet<E>
Utility subclass ofLinkedHashSetthat supports fluent API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FluentHashSet()FluentHashSet(int initialCapacity)FluentHashSet(int initialCapacity, float loadFactor)FluentHashSet(E... elements)FluentHashSet(Collection<? extends E> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(E... elements)Fluent method to add the elements to this set.FluentHashSet<E>withAll(Collection<? extends E> c)Fluent method to add the elements from the specified collection to this set.-
Methods inherited from class java.util.LinkedHashSet
spliterator
-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
FluentHashSet
public FluentHashSet()
-
FluentHashSet
public FluentHashSet(Collection<? extends E> c)
-
FluentHashSet
public FluentHashSet(E... elements)
-
FluentHashSet
public FluentHashSet(int initialCapacity, float loadFactor)
-
FluentHashSet
public FluentHashSet(int initialCapacity)
-
-
Method Detail
-
with
public FluentHashSet<E> with(E e)
Fluent method to add the specified element to this set.
-
withAll
public FluentHashSet<E> withAll(Collection<? extends E> c)
Fluent method to add the elements from the specified collection to this set.
-
withAll
public FluentHashSet<E> withAll(E... elements)
Fluent method to add the elements to this set.
-
delete
public FluentHashSet<E> delete(Object o)
Fluent method to remove the specified element from this set.
-
-