Package com.landawn.abacus.util
Class IntTriple
java.lang.Object
com.landawn.abacus.util.IntTriple
- All Implemented Interfaces:
Immutable
- Since:
- 1.2
- Author:
- Haiyang Li
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<E extends Exception>
voidaccept
(Throwables.IntTriConsumer<E> action) double
average()
boolean
<E extends Exception>
u.Optional<IntTriple>filter
(Throwables.IntTriPredicate<E> predicate) <E extends Exception>
voidforEach
(Throwables.IntConsumer<E> comsumer) int
hashCode()
<U,
E extends Exception>
Umap
(Throwables.IntTriFunction<U, E> mapper) int
max()
int
min()
static IntTriple
of
(int _1, int _2, int _3) reverse()
stream()
int
sum()
toString()
-
Field Details
-
_1
public final int _1 -
_2
public final int _2 -
_3
public final int _3
-
-
Method Details
-
of
- Parameters:
_1
- the 1_2
- the 2_3
- the 3- Returns:
-
min
public int min() -
max
public int max() -
sum
public int sum() -
average
public double average() -
reverse
-
forEach
- Type Parameters:
E
-- Parameters:
comsumer
-- Throws:
E
- the e
-
accept
- Type Parameters:
E
-- Parameters:
action
-- Throws:
E
- the e
-
map
- Type Parameters:
U
-E
-- Parameters:
mapper
-- Returns:
- Throws:
E
- the e
-
filter
public <E extends Exception> u.Optional<IntTriple> filter(Throwables.IntTriPredicate<E> predicate) throws E - Type Parameters:
E
-- Parameters:
predicate
-- Returns:
- Throws:
E
- the e
-
stream
-
hashCode
public int hashCode() -
equals
-
toString
-