Class HashingStrategies
- java.lang.Object
-
- org.eclipse.collections.impl.block.factory.HashingStrategies
-
public final class HashingStrategies extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods 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 Detail
-
defaultStrategy
public static <T> HashingStrategy<T> 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
public static <T,V> HashingStrategy<T> fromFunction(Function<? super T,? extends V> function)
-
identityStrategy
public static HashingStrategy<Object> identityStrategy()
-
chain
public static <T> HashingStrategy<T> chain(HashingStrategy<T>... hashingStrategies)
-
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
public static <T> HashingStrategy<T> fromBooleanFunction(BooleanFunction<? super T> function)
-
fromByteFunction
public static <T> HashingStrategy<T> fromByteFunction(ByteFunction<? super T> function)
-
fromCharFunction
public static <T> HashingStrategy<T> fromCharFunction(CharFunction<? super T> function)
-
fromDoubleFunction
public static <T> HashingStrategy<T> fromDoubleFunction(DoubleFunction<? super T> function)
-
fromFloatFunction
public static <T> HashingStrategy<T> fromFloatFunction(FloatFunction<? super T> function)
-
fromIntFunction
public static <T> HashingStrategy<T> fromIntFunction(IntFunction<? super T> function)
-
fromLongFunction
public static <T> HashingStrategy<T> fromLongFunction(LongFunction<? super T> function)
-
fromShortFunction
public static <T> HashingStrategy<T> fromShortFunction(ShortFunction<? super T> function)
-
-