Class PrimitiveFunctions
java.lang.Object
org.eclipse.collections.impl.block.factory.PrimitiveFunctions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PrimitiveFunctions.IntegerIsPositiveprivate static final PrimitiveFunctions.UnboxDoubleToDoubleprivate static final PrimitiveFunctions.UnboxFloatToFloatprivate static final PrimitiveFunctions.UnboxIntegerToByteprivate static final PrimitiveFunctions.UnboxIntegerToCharprivate static final PrimitiveFunctions.UnboxIntegerToDoubleprivate static final PrimitiveFunctions.UnboxIntegerToFloatprivate static final PrimitiveFunctions.UnboxIntegerToIntprivate static final PrimitiveFunctions.UnboxIntegerToLongprivate static final PrimitiveFunctions.UnboxIntegerToShortprivate static final PrimitiveFunctions.UnboxNumberToDoubleprivate static final PrimitiveFunctions.UnboxNumberToFloatprivate static final PrimitiveFunctions.UnboxNumberToIntprivate static final PrimitiveFunctions.UnboxNumberToLong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanFunction<Integer> static <T,V> Function2 <MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> sumByDoubleFunction(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) static <T,V> Function2 <MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> sumByFloatFunction(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) static <T,V> Function2 <MutableObjectLongMap<V>, T, MutableObjectLongMap<V>> sumByIntFunction(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) static <T,V> Function2 <MutableObjectLongMap<V>, T, MutableObjectLongMap<V>> sumByLongFunction(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) static DoubleFunction<Double> static FloatFunction<Float> static ByteFunction<Integer> static CharFunction<Integer> static DoubleFunction<Integer> static FloatFunction<Integer> static IntFunction<Integer> static LongFunction<Integer> static ShortFunction<Integer> static DoubleFunction<Number> static FloatFunction<Number> static IntFunction<Number> static LongFunction<Number>
-
Field Details
-
INTEGER_IS_POSITIVE
-
UNBOX_NUMBER_TO_INT
-
UNBOX_INTEGER_TO_BYTE
-
UNBOX_INTEGER_TO_CHAR
-
UNBOX_INTEGER_TO_INT
-
UNBOX_INTEGER_TO_FLOAT
-
UNBOX_INTEGER_TO_LONG
-
UNBOX_INTEGER_TO_SHORT
-
UNBOX_INTEGER_TO_DOUBLE
-
UNBOX_DOUBLE_TO_DOUBLE
-
UNBOX_FLOAT_TO_FLOAT
-
UNBOX_NUMBER_TO_FLOAT
-
UNBOX_NUMBER_TO_LONG
-
UNBOX_NUMBER_TO_DOUBLE
-
-
Constructor Details
-
PrimitiveFunctions
private PrimitiveFunctions()
-
-
Method Details
-
integerIsPositive
-
unboxNumberToInt
-
unboxIntegerToByte
-
unboxIntegerToChar
-
unboxIntegerToInt
-
unboxNumberToFloat
-
unboxNumberToLong
-
unboxNumberToDouble
-
unboxIntegerToFloat
-
unboxIntegerToLong
-
unboxIntegerToShort
-
unboxIntegerToDouble
-
unboxDoubleToDouble
-
unboxFloatToFloat
-
sumByIntFunction
public static <T,V> Function2<MutableObjectLongMap<V>, T, MutableObjectLongMap<V>> sumByIntFunction(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) -
sumByFloatFunction
public static <T,V> Function2<MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> sumByFloatFunction(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) -
sumByLongFunction
public static <T,V> Function2<MutableObjectLongMap<V>, T, MutableObjectLongMap<V>> sumByLongFunction(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) -
sumByDoubleFunction
public static <T,V> Function2<MutableObjectDoubleMap<V>, T, MutableObjectDoubleMap<V>> sumByDoubleFunction(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)
-