Class Maps
java.lang.Object
io.lacuna.bifurcan.Maps
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiPredicatestatic final ToLongFunctionstatic final BinaryOperator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollector(Function<T, K> keyFn, Function<T, V> valFn, BinaryOperator<V> mergeFn) static <K,V> boolean static <K,V> boolean equals(IMap<K, V> a, IMap<K, V> b, BiPredicate<V, V> valEquals) static <K> booleanequivEquality(IMap<K, ?> a, IMap<K, ?> b) static <K> booleanequivEquality(IMap<K, ?> a, ISet<K> b) static <K,V> IMap <K, V> static <K,V> IMap <K, V> static <K,V> ISortedMap <K, V> from(ISortedSet<K> keys, Function<K, V> lookup) static <K,V> ISortedMap <K, V> static <K,V> long static <K,V> long hash(IMap<K, V> m, ToLongFunction<IEntry<K, V>> hash, LongBinaryOperator combiner) linearCollector(Function<T, K> keyFn, Function<T, V> valFn) linearCollector(Function<T, K> keyFn, Function<T, V> valFn, int capacity) linearCollector(Function<T, K> keyFn, Function<T, V> valFn, BinaryOperator<V> mergeFn, int capacity) static <K,V> Map.Entry <K, V> static <K,V> Map <K, V> static <K,V> String static <K,V> String
-
Field Details
-
MERGE_LAST_WRITE_WINS
-
DEFAULT_HASH_CODE
-
DEFAULT_EQUALS
-
-
Constructor Details
-
Maps
public Maps()
-
-
Method Details
-
toString
-
toString
-
hash
-
hash
public static <K,V> long hash(IMap<K, V> m, ToLongFunction<IEntry<K, V>> hash, LongBinaryOperator combiner) -
equals
-
equals
-
from
-
from
public static <K,V> ISortedMap<K,V> from(ISortedSet<K> keys, Function<K, V> lookup, Supplier<Iterator<IEntry<K, V>>> iterator) -
from
-
from
-
toMap
-
toEntry
-
equivEquality
-
equivEquality
-
linearCollector
-
linearCollector
-
linearCollector
-
collector
-
collector
-