Package org.midheaven.collections
Class AssociationBuilder
java.lang.Object
org.midheaven.collections.AssociationBuilder
Builder for Association instances.
-
Method Summary
Modifier and TypeMethodDescriptionPerforms concurrent.<K,V> Association <K, V> empty()Returns an empty instance.<K,V> Association <K, V> Creates an instance from the provided source.<K,V> Association <K, V> from(Association<K, V> association) Creates an instance from the provided source.<K,V> Association <K, V> immutable(EditableAssociation<K, V> association) Performs immutable.<K,V> Association <K, V> of(K key, V value) Creates an instance from the provided value.final <K,V> Association <K, V> ofEntries(Association.Entry<K, V>... entries) Returns of Entries.Performs resizable.
-
Method Details
-
of
Creates an instance from the provided value.- Parameters:
key- the keyvalue- the value- Returns:
- the created
Association
-
ofEntries
Returns of Entries.- Parameters:
entries- the entries value- Returns:
- the result of ofEntries
-
immutable
Performs immutable.- Parameters:
association- the association value- Returns:
- the result of immutable
-
from
Creates an instance from the provided source.- Parameters:
map- the map value- Returns:
- the result of from
-
from
Creates an instance from the provided source.- Parameters:
association- the association value- Returns:
- the result of from
-
empty
Returns an empty instance.- Returns:
- the result of empty
-
resizable
Performs resizable.- Returns:
- the result of resizable
-
concurrent
Performs concurrent.- Returns:
- the result of concurrent
-