Class DistinctAssortmentBuilder

java.lang.Object
org.midheaven.collections.DistinctAssortmentBuilder

public class DistinctAssortmentBuilder extends Object
Builder for Distinct Assortment instances.
  • Method Details

    • resizable

      Performs resizable.
      Returns:
      the result of resizable
    • empty

      public <U> DistinctAssortment<U> empty()
      Returns an empty instance.
      Returns:
      the result of empty
    • of

      public <U> DistinctAssortment<U> of(U singleValue)
      Creates an instance from the provided value.
      Parameters:
      singleValue - the singleValue value
      Returns:
      the result of of
    • of

      public <U> DistinctAssortment<U> of(U a, U b, U... others)
      Creates an instance from the provided value.
      Parameters:
      a - the a value
      b - the b value
      others - the others value
      Returns:
      the result of of
    • of

      public final <U> DistinctAssortment<U> of(U[] values)
      Creates an instance from the provided value.
      Parameters:
      values - the values value
      Returns:
      the result of of
    • from

      public <T> DistinctAssortment<T> from(Iterable<T> origin)
      Creates an instance from the provided source.
      Parameters:
      origin - the origin value
      Returns:
      the result of from