Class AssociationBuilder

java.lang.Object
org.midheaven.collections.AssociationBuilder

public class AssociationBuilder extends Object
Builder for Association instances.
  • Method Details

    • of

      public <K, V> Association<K,V> of(K key, V value)
      Creates an instance from the provided value.
      Parameters:
      key - the key
      value - the value
      Returns:
      the created Association
    • ofEntries

      @SafeVarargs public final <K, V> Association<K,V> ofEntries(Association.Entry<K,V>... entries)
      Returns of Entries.
      Parameters:
      entries - the entries value
      Returns:
      the result of ofEntries
    • immutable

      public <K, V> Association<K,V> immutable(EditableAssociation<K,V> association)
      Performs immutable.
      Parameters:
      association - the association value
      Returns:
      the result of immutable
    • from

      public <K, V> Association<K,V> from(Map<K,V> map)
      Creates an instance from the provided source.
      Parameters:
      map - the map value
      Returns:
      the result of from
    • from

      public <K, V> Association<K,V> from(Association<K,V> association)
      Creates an instance from the provided source.
      Parameters:
      association - the association value
      Returns:
      the result of from
    • empty

      public <K, V> Association<K,V> empty()
      Returns an empty instance.
      Returns:
      the result of empty
    • resizable

      public ResizableAssociationBuilder resizable()
      Performs resizable.
      Returns:
      the result of resizable
    • concurrent

      public ResizableAssociationBuilder concurrent()
      Performs concurrent.
      Returns:
      the result of concurrent