Class ResizableAssociationBuilder

java.lang.Object
org.midheaven.collections.ResizableAssociationBuilder

public class ResizableAssociationBuilder extends Object
  • Constructor Details

    • ResizableAssociationBuilder

      public ResizableAssociationBuilder()
  • Method Details

    • baseMap

      protected <K, V> Map<K,V> baseMap()
      Performs baseMap.
      Returns:
      the result of baseMap
    • baseMap

      protected <K, V> Map<K,V> baseMap(Map<K,V> original)
      Performs baseMap.
      Parameters:
      original - the original value
      Returns:
      the result of baseMap
    • ofEntries

      public <K, V> ResizableAssociation<K,V> ofEntries(Association.Entry<K,V>... entries)
      Returns of Entries.
      Parameters:
      entries - the entries value
      Returns:
      the result of ofEntries
    • from

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

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

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