Class PrimitiveFunctions
java.lang.Object
org.eclipse.collections.impl.block.factory.PrimitiveFunctions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PrimitiveFunctions.IntegerIsPositive
private static final PrimitiveFunctions.UnboxDoubleToDouble
private static final PrimitiveFunctions.UnboxFloatToFloat
private static final PrimitiveFunctions.UnboxIntegerToByte
private static final PrimitiveFunctions.UnboxIntegerToChar
private static final PrimitiveFunctions.UnboxIntegerToDouble
private static final PrimitiveFunctions.UnboxIntegerToFloat
private static final PrimitiveFunctions.UnboxIntegerToInt
private static final PrimitiveFunctions.UnboxIntegerToLong
private static final PrimitiveFunctions.UnboxIntegerToShort
private static final PrimitiveFunctions.UnboxNumberToDouble
private static final PrimitiveFunctions.UnboxNumberToFloat
private static final PrimitiveFunctions.UnboxNumberToInt
private 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, sumByIntFunctionMutableObjectLongMap<V>> (Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) -
sumByFloatFunction
public static <T,V> Function2<MutableObjectDoubleMap<V>,T, sumByFloatFunctionMutableObjectDoubleMap<V>> (Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) -
sumByLongFunction
public static <T,V> Function2<MutableObjectLongMap<V>,T, sumByLongFunctionMutableObjectLongMap<V>> (Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) -
sumByDoubleFunction
public static <T,V> Function2<MutableObjectDoubleMap<V>,T, sumByDoubleFunctionMutableObjectDoubleMap<V>> (Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)
-