public final class HashCharSets extends Object
HashCharSet
s, and
the default HashCharSetFactory
static provider (getDefaultFactory()
).HashCharSet
,
@KolobokeSet
Modifier and Type | Method and Description |
---|---|
static HashCharSetFactory |
getDefaultFactory()
Returns the default implementation of
HashCharSetFactory , to which all static methods
in this class delegate. |
static HashCharSet |
newImmutableSet(char[] elements)
Constructs a new immutable set of elements from the given array.
|
static HashCharSet |
newImmutableSet(char[] elements,
int expectedSize)
Constructs a new immutable set of elements from the given array.
|
static HashCharSet |
newImmutableSet(Character[] elements)
Constructs a new immutable set of elements from the given array.
|
static HashCharSet |
newImmutableSet(Character[] elements,
int expectedSize)
Constructs a new immutable set of elements from the given array.
|
static HashCharSet |
newImmutableSet(Consumer<CharConsumer> elementsSupplier)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
static HashCharSet |
newImmutableSet(Consumer<CharConsumer> elementsSupplier,
int expectedSize)
Constructs a new immutable set of elements consumed by the callback within the given closure.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elements)
Constructs a new immutable set containing the elements in the specified iterable.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elements,
int expectedSize)
Constructs a new immutable set containing the elements in the specified iterable.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
Iterable<Character> elems5)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
Iterable<Character> elems5,
int expectedSize)
Constructs a new immutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newImmutableSet(Iterator<Character> elements)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
static HashCharSet |
newImmutableSet(Iterator<Character> elements,
int expectedSize)
Constructs a new immutable set containing the elements traversed by the specified iterator.
|
static HashCharSet |
newImmutableSetOf(char e1)
Constructs a new immutable singleton set of the given element.
|
static HashCharSet |
newImmutableSetOf(char e1,
char e2)
Constructs a new immutable set of the two specified elements.
|
static HashCharSet |
newImmutableSetOf(char e1,
char e2,
char e3)
Constructs a new immutable set of the three specified elements.
|
static HashCharSet |
newImmutableSetOf(char e1,
char e2,
char e3,
char e4)
Constructs a new immutable set of the four specified elements.
|
static HashCharSet |
newImmutableSetOf(char e1,
char e2,
char e3,
char e4,
char e5,
char... restElements)
Constructs a new immutable set of the specified elements.
|
static HashCharSet |
newMutableSet()
Constructs a new empty mutable set of the default expected size.
|
static HashCharSet |
newMutableSet(char[] elements)
Constructs a new mutable set of elements from the given array.
|
static HashCharSet |
newMutableSet(char[] elements,
int expectedSize)
Constructs a new mutable set of elements from the given array.
|
static HashCharSet |
newMutableSet(Character[] elements)
Constructs a new mutable set of elements from the given array.
|
static HashCharSet |
newMutableSet(Character[] elements,
int expectedSize)
Constructs a new mutable set of elements from the given array.
|
static HashCharSet |
newMutableSet(Consumer<CharConsumer> elementsSupplier)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
static HashCharSet |
newMutableSet(Consumer<CharConsumer> elementsSupplier,
int expectedSize)
Constructs a new mutable set of elements consumed by the callback within the given closure.
|
static HashCharSet |
newMutableSet(int expectedSize)
Constructs a new empty mutable set of the given expected size.
|
static HashCharSet |
newMutableSet(Iterable<Character> elements)
Constructs a new mutable set containing the elements in the specified iterable.
|
static HashCharSet |
newMutableSet(Iterable<Character> elements,
int expectedSize)
Constructs a new mutable set containing the elements in the specified iterable.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
Iterable<Character> elems5)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
Iterable<Character> elems5,
int expectedSize)
Constructs a new mutable set which merge the elements of the specified iterables.
|
static HashCharSet |
newMutableSet(Iterator<Character> elements)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
static HashCharSet |
newMutableSet(Iterator<Character> elements,
int expectedSize)
Constructs a new mutable set containing the elements traversed by the specified iterator.
|
static HashCharSet |
newMutableSetOf(char e1)
Constructs a new mutable singleton set of the given element.
|
static HashCharSet |
newMutableSetOf(char e1,
char e2)
Constructs a new mutable set of the two specified elements.
|
static HashCharSet |
newMutableSetOf(char e1,
char e2,
char e3)
Constructs a new mutable set of the three specified elements.
|
static HashCharSet |
newMutableSetOf(char e1,
char e2,
char e3,
char e4)
Constructs a new mutable set of the four specified elements.
|
static HashCharSet |
newMutableSetOf(char e1,
char e2,
char e3,
char e4,
char e5,
char... restElements)
Constructs a new mutable set of the specified elements.
|
static HashCharSet |
newUpdatableSet()
Constructs a new empty updatable set of the default expected size.
|
static HashCharSet |
newUpdatableSet(char[] elements)
Constructs a new updatable set of elements from the given array.
|
static HashCharSet |
newUpdatableSet(char[] elements,
int expectedSize)
Constructs a new updatable set of elements from the given array.
|
static HashCharSet |
newUpdatableSet(Character[] elements)
Constructs a new updatable set of elements from the given array.
|
static HashCharSet |
newUpdatableSet(Character[] elements,
int expectedSize)
Constructs a new updatable set of elements from the given array.
|
static HashCharSet |
newUpdatableSet(Consumer<CharConsumer> elementsSupplier)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
static HashCharSet |
newUpdatableSet(Consumer<CharConsumer> elementsSupplier,
int expectedSize)
Constructs a new updatable set of elements consumed by the callback within the given closure.
|
static HashCharSet |
newUpdatableSet(int expectedSize)
Constructs a new empty updatable set of the given expected size.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elements)
Constructs a new updatable set containing the elements in the specified iterable.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elements,
int expectedSize)
Constructs a new updatable set containing the elements in the specified iterable.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
Iterable<Character> elems5)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterable<Character> elems1,
Iterable<Character> elems2,
Iterable<Character> elems3,
Iterable<Character> elems4,
Iterable<Character> elems5,
int expectedSize)
Constructs a new updatable set which merge the elements of the specified iterables.
|
static HashCharSet |
newUpdatableSet(Iterator<Character> elements)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
static HashCharSet |
newUpdatableSet(Iterator<Character> elements,
int expectedSize)
Constructs a new updatable set containing the elements traversed by the specified iterator.
|
static HashCharSet |
newUpdatableSetOf(char e1)
Constructs a new updatable singleton set of the given element.
|
static HashCharSet |
newUpdatableSetOf(char e1,
char e2)
Constructs a new updatable set of the two specified elements.
|
static HashCharSet |
newUpdatableSetOf(char e1,
char e2,
char e3)
Constructs a new updatable set of the three specified elements.
|
static HashCharSet |
newUpdatableSetOf(char e1,
char e2,
char e3,
char e4)
Constructs a new updatable set of the four specified elements.
|
static HashCharSet |
newUpdatableSetOf(char e1,
char e2,
char e3,
char e4,
char e5,
char... restElements)
Constructs a new updatable set of the specified elements.
|
@Nonnull public static HashCharSetFactory getDefaultFactory()
HashCharSetFactory
, to which all static methods
in this class delegate.HashCharSetFactory
RuntimeException
- if no implementations of HashCharSetFactory
are provided@Nonnull public static HashCharSet newMutableSet()
This method simply delegates to getDefaultFactory()
.newMutableSet()
.
@Nonnull public static HashCharSet newMutableSet(int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(expectedSize)
.
expectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize
argument is ignored.
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
elements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, @Nonnull Iterable<Character> elems5, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4, elems5, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterator<Character> elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
elements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Consumer<CharConsumer> elementsSupplier, int expectedSize)
Example: TODO
This method simply delegates to getDefaultFactory()
.newMutableSet(elementsSupplier, expectedSize)
.
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull char[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Character[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements, expectedSize)
.
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned setNullPointerException
- if elements
array contain null
elements@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
elements
- the iterable whose elements are to be placed into the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, @Nonnull Iterable<Character> elems5)
This method simply delegates to getDefaultFactory()
.newMutableSet(elems1, elems2, elems3, elems4, elems5)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Iterator<Character> elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
elements
- the iterator from which elements are to be placed into the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Consumer<CharConsumer> elementsSupplier)
Example: TODO
This method simply delegates to getDefaultFactory()
.newMutableSet(elementsSupplier)
.
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull public static HashCharSet newMutableSet(@Nonnull char[] elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
elements
- the array whose elements are to be placed into the returned set@Nonnull public static HashCharSet newMutableSet(@Nonnull Character[] elements)
This method simply delegates to getDefaultFactory()
.newMutableSet(elements)
.
elements
- the array whose elements are to be placed into the returned setNullPointerException
- if elements
array contain null
elements@Nonnull public static HashCharSet newMutableSetOf(char e1)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1)
.
e1
- the sole element@Nonnull public static HashCharSet newMutableSetOf(char e1, char e2)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2)
.
e1
- the first elemente2
- the second element@Nonnull public static HashCharSet newMutableSetOf(char e1, char e2, char e3)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2, e3)
.
e1
- the first elemente2
- the second elemente3
- the third element@Nonnull public static HashCharSet newMutableSetOf(char e1, char e2, char e3, char e4)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2, e3, e4)
.
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull public static HashCharSet newMutableSetOf(char e1, char e2, char e3, char e4, char e5, char... restElements)
This method simply delegates to getDefaultFactory()
.newMutableSetOf(e1, e2, e3, e4, e5, restElements)
.
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set@Nonnull public static HashCharSet newUpdatableSet()
This method simply delegates to getDefaultFactory()
.newUpdatableSet()
.
@Nonnull public static HashCharSet newUpdatableSet(int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(expectedSize)
.
expectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize
argument is ignored.
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
elements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, @Nonnull Iterable<Character> elems5, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4, elems5, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterator<Character> elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
elements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Consumer<CharConsumer> elementsSupplier, int expectedSize)
Example: TODO
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elementsSupplier, expectedSize)
.
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull char[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Character[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements, expectedSize)
.
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned setNullPointerException
- if elements
array contain null
elements@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
elements
- the iterable whose elements are to be placed into the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, @Nonnull Iterable<Character> elems5)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elems1, elems2, elems3, elems4, elems5)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Iterator<Character> elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
elements
- the iterator from which elements are to be placed into the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Consumer<CharConsumer> elementsSupplier)
Example: TODO
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elementsSupplier)
.
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull public static HashCharSet newUpdatableSet(@Nonnull char[] elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
elements
- the array whose elements are to be placed into the returned set@Nonnull public static HashCharSet newUpdatableSet(@Nonnull Character[] elements)
This method simply delegates to getDefaultFactory()
.newUpdatableSet(elements)
.
elements
- the array whose elements are to be placed into the returned setNullPointerException
- if elements
array contain null
elements@Nonnull public static HashCharSet newUpdatableSetOf(char e1)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1)
.
e1
- the sole element@Nonnull public static HashCharSet newUpdatableSetOf(char e1, char e2)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2)
.
e1
- the first elemente2
- the second element@Nonnull public static HashCharSet newUpdatableSetOf(char e1, char e2, char e3)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2, e3)
.
e1
- the first elemente2
- the second elemente3
- the third element@Nonnull public static HashCharSet newUpdatableSetOf(char e1, char e2, char e3, char e4)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2, e3, e4)
.
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull public static HashCharSet newUpdatableSetOf(char e1, char e2, char e3, char e4, char e5, char... restElements)
This method simply delegates to getDefaultFactory()
.newUpdatableSetOf(e1, e2, e3, e4, e5, restElements)
.
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elements, int expectedSize)
If the specified iterable is a Set
the expectedSize
argument is ignored.
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
elements
- the iterable whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, @Nonnull Iterable<Character> elems5, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4, elems5, expectedSize)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterator<Character> elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
elements
- the iterator from which elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Consumer<CharConsumer> elementsSupplier, int expectedSize)
Example: TODO
This method simply delegates to getDefaultFactory()
.newImmutableSet(elementsSupplier, expectedSize)
.
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed inexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull char[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Character[] elements, int expectedSize)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements, expectedSize)
.
elements
- the array whose elements are to be placed into the returned setexpectedSize
- the expected size of the returned setNullPointerException
- if elements
array contain null
elements@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
elements
- the iterable whose elements are to be placed into the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterable<Character> elems1, @Nonnull Iterable<Character> elems2, @Nonnull Iterable<Character> elems3, @Nonnull Iterable<Character> elems4, @Nonnull Iterable<Character> elems5)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elems1, elems2, elems3, elems4, elems5)
.
elems1
- the first source of elements for the returned setelems2
- the second source of elements for the returned setelems3
- the third source of elements for the returned setelems4
- the fourth source of elements for the returned setelems5
- the fifth source of elements for the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Iterator<Character> elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
elements
- the iterator from which elements are to be placed into the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Consumer<CharConsumer> elementsSupplier)
Example: TODO
This method simply delegates to getDefaultFactory()
.newImmutableSet(elementsSupplier)
.
elementsSupplier
- the function which supply mappings for the returned set via
the callback passed in@Nonnull public static HashCharSet newImmutableSet(@Nonnull char[] elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
elements
- the array whose elements are to be placed into the returned set@Nonnull public static HashCharSet newImmutableSet(@Nonnull Character[] elements)
This method simply delegates to getDefaultFactory()
.newImmutableSet(elements)
.
elements
- the array whose elements are to be placed into the returned setNullPointerException
- if elements
array contain null
elements@Nonnull public static HashCharSet newImmutableSetOf(char e1)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1)
.
e1
- the sole element@Nonnull public static HashCharSet newImmutableSetOf(char e1, char e2)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2)
.
e1
- the first elemente2
- the second element@Nonnull public static HashCharSet newImmutableSetOf(char e1, char e2, char e3)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2, e3)
.
e1
- the first elemente2
- the second elemente3
- the third element@Nonnull public static HashCharSet newImmutableSetOf(char e1, char e2, char e3, char e4)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2, e3, e4)
.
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth element@Nonnull public static HashCharSet newImmutableSetOf(char e1, char e2, char e3, char e4, char e5, char... restElements)
This method simply delegates to getDefaultFactory()
.newImmutableSetOf(e1, e2, e3, e4, e5, restElements)
.
e1
- the first elemente2
- the second elemente3
- the third elemente4
- the fourth elemente5
- the fifth elementrestElements
- the rest elements to be placed into the set