Serializable
, Cloneable
, Iterable<E>
, Collection<E>
, Set<E>
public class FluentHashSet<E> extends LinkedHashSet<E>
LinkedHashSet
that supports fluent API.Constructor | Description |
---|---|
FluentHashSet() |
|
FluentHashSet(int initialCapacity) |
|
FluentHashSet(int initialCapacity,
float loadFactor) |
|
FluentHashSet(E... elements) |
|
FluentHashSet(Collection<? extends E> c) |
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.
|
addAll, containsAll, retainAll, toArray, toArray, toString
equals, hashCode, removeAll
parallelStream, removeIf, stream
add, clear, clone, contains, isEmpty, iterator, remove, size
spliterator
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 © 2017 Amazon Web Services, Inc. All Rights Reserved.