Package org.midheaven.collections
Class DistinctAssortmentBuilder
java.lang.Object
org.midheaven.collections.DistinctAssortmentBuilder
Builder for Distinct Assortment instances.
-
Method Summary
Modifier and TypeMethodDescription<U> DistinctAssortment<U> empty()Returns an empty instance.<T> DistinctAssortment<T> Creates an instance from the provided source.<U> DistinctAssortment<U> of(U singleValue) Creates an instance from the provided value.final <U> DistinctAssortment<U> of(U[] values) Creates an instance from the provided value.<U> DistinctAssortment<U> of(U a, U b, U... others) Creates an instance from the provided value.Performs resizable.
-
Method Details
-
resizable
Performs resizable.- Returns:
- the result of resizable
-
empty
Returns an empty instance.- Returns:
- the result of empty
-
of
Creates an instance from the provided value.- Parameters:
singleValue- the singleValue value- Returns:
- the result of of
-
of
Creates an instance from the provided value.- Parameters:
a- the a valueb- the b valueothers- the others value- Returns:
- the result of of
-
of
Creates an instance from the provided value.- Parameters:
values- the values value- Returns:
- the result of of
-
from
Creates an instance from the provided source.- Parameters:
origin- the origin value- Returns:
- the result of from
-