Class HashingStrategies
java.lang.Object
org.eclipse.collections.impl.block.factory.HashingStrategies
public final class HashingStrategies extends Object
-
Method Summary
Modifier and Type Method Description static <T> HashingStrategy<T>chain(HashingStrategy<T>... hashingStrategies)static <T> HashingStrategy<T>defaultStrategy()static <T> HashingStrategy<T>fromBooleanFunction(BooleanFunction<? super T> function)static <T> HashingStrategy<T>fromByteFunction(ByteFunction<? super T> function)static <T> HashingStrategy<T>fromCharFunction(CharFunction<? super T> function)static <T> HashingStrategy<T>fromDoubleFunction(DoubleFunction<? super T> function)static <T> HashingStrategy<T>fromFloatFunction(FloatFunction<? super T> function)static <T, V> HashingStrategy<T>fromFunction(Function<? super T,? extends V> function)static <T, V1, V2> HashingStrategy<T>fromFunctions(Function<? super T,? extends V1> one, Function<? super T,? extends V2> two)static <T, V1, V2, V3>
HashingStrategy<T>fromFunctions(Function<? super T,? extends V1> one, Function<? super T,? extends V2> two, Function<? super T,? extends V3> three)static <T> HashingStrategy<T>fromIntFunction(IntFunction<? super T> function)static <T> HashingStrategy<T>fromLongFunction(LongFunction<? super T> function)static <T> HashingStrategy<T>fromShortFunction(ShortFunction<? super T> function)static HashingStrategy<Object>identityStrategy()static <T, V> HashingStrategy<T>nullSafeFromFunction(Function<? super T,? extends V> function)static <T> HashingStrategy<T>nullSafeHashingStrategy(HashingStrategy<T> nonNullSafeStrategy)
-
Method Details
-
defaultStrategy
-
nullSafeHashingStrategy
public static <T> HashingStrategy<T> nullSafeHashingStrategy(HashingStrategy<T> nonNullSafeStrategy) -
nullSafeFromFunction
public static <T, V> HashingStrategy<T> nullSafeFromFunction(Function<? super T,? extends V> function) -
fromFunction
-
identityStrategy
-
chain
-
fromFunctions
public static <T, V1, V2> HashingStrategy<T> fromFunctions(Function<? super T,? extends V1> one, Function<? super T,? extends V2> two) -
fromFunctions
public static <T, V1, V2, V3> HashingStrategy<T> fromFunctions(Function<? super T,? extends V1> one, Function<? super T,? extends V2> two, Function<? super T,? extends V3> three) -
fromBooleanFunction
-
fromByteFunction
-
fromCharFunction
-
fromDoubleFunction
-
fromFloatFunction
-
fromIntFunction
-
fromLongFunction
-
fromShortFunction
-