Interface BuildableToLongFunction<T>
- All Superinterfaces:
ToLongFunction<T>
A function of one argument that generates a
long
result, and
supports building derived functional types.-
Method Summary
Modifier and TypeMethodDescriptiondefault BuildableToLongFunction<T>
add
(long operand) Returns a function that calculates the sum ofoperand
andthis
.default Comparator<T>
Returns aComparator
that orders objects using the double values mapped by this function.default BuildableComparableFunction<T,
Long> boxed()
default BuildableToLongFunction<T>
Returns a function that decrementsthis
by one.default BuildableToLongFunction<T>
divide
(long divisor) Returns a function that calculates the quotient ofthis
anddivisor
.default BuildableToLongFunction<T>
Returns a function that incrementsthis
by one.default BuildablePredicate<T>
is
(long test) Returns a predicate that tests the value generated bythis
for equality with the supplied constant.default BuildablePredicate<T>
isGreaterThan
(long test) Returns a predicate that tests the value generated bythis
to see if it is greater than the supplied constant.default BuildablePredicate<T>
isGreaterThanOrEqualTo
(long test) Returns a predicate that tests the value generated bythis
to see if it is greater than or equal to the supplied constant.default BuildablePredicate<T>
isLessThan
(long test) Returns a predicate that tests the value generated bythis
to see if it is less than the supplied constant.default BuildablePredicate<T>
isLessThanOrEqualTo
(long test) Returns a predicate that tests the value generated bythis
to see if it is less than or equal to the supplied constant.default BuildableToLongFunction<T>
multiply
(long multiplier) Returns a function that calculates the product ofthis
andmultiplier
.default BuildableToLongFunction<T>
subtract
(long operand) Returns a function that subtractsoperand
fromthis
.Methods inherited from interface java.util.function.ToLongFunction
applyAsLong
-
Method Details
-
add
Returns a function that calculates the sum ofoperand
andthis
.- Parameters:
operand
- the value to add- Returns:
- a summing function
-
subtract
Returns a function that subtractsoperand
fromthis
.- Parameters:
operand
- the value to subtract- Returns:
- a subtracting function
-
increment
Returns a function that incrementsthis
by one.- Returns:
- an incrementing function
-
decrement
Returns a function that decrementsthis
by one.- Returns:
- a decrementing function
-
multiply
Returns a function that calculates the product ofthis
andmultiplier
.- Parameters:
multiplier
- the multiplier- Returns:
- a multiplying function
-
divide
Returns a function that calculates the quotient ofthis
anddivisor
.- Parameters:
divisor
- the divisor- Returns:
- a dividing function
-
is
Returns a predicate that tests the value generated bythis
for equality with the supplied constant.- Parameters:
test
- value to test against- Returns:
- an equality predicate
-
isGreaterThan
Returns a predicate that tests the value generated bythis
to see if it is greater than the supplied constant.- Parameters:
test
- value to test against- Returns:
- a greater than predicate
-
isLessThan
Returns a predicate that tests the value generated bythis
to see if it is less than the supplied constant.- Parameters:
test
- value to test against- Returns:
- a less than predicate
-
isGreaterThanOrEqualTo
Returns a predicate that tests the value generated bythis
to see if it is greater than or equal to the supplied constant.- Parameters:
test
- value to test against- Returns:
- a greater than or equal to predicate
-
isLessThanOrEqualTo
Returns a predicate that tests the value generated bythis
to see if it is less than or equal to the supplied constant.- Parameters:
test
- value to test against- Returns:
- a less than or equal to predicate
-
asComparator
Returns aComparator
that orders objects using the double values mapped by this function.- Returns:
- a comparator that orders using the mapped values
-
boxed
-