L - the left element typeM - the middle element typeR - the right element typepublic abstract class Triple<L,M,R> extends Object implements Comparable<Triple<L,M,R>>, Serializable
| Constructor and Description |
|---|
Triple() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Triple<L,M,R> other) |
boolean |
equals(Object obj) |
abstract L |
getLeft() |
abstract M |
getMiddle() |
abstract R |
getRight() |
int |
hashCode() |
static <L,M,R> Triple<L,M,R> |
of(L left,
M middle,
R right)
获取由三个推断泛型类型的对象组成的不可变三元组
|
String |
toString() |
String |
toString(String format) |
public static <L,M,R> Triple<L,M,R> of(L left, M middle, R right)
L - 左元素类型M - 中间元素类型R - 右元素类型left - 左值可以为nullmiddle - 中间可以为nullright - 右值可以为nullpublic abstract L getLeft()
public abstract M getMiddle()
public abstract R getRight()
Copyright © 2019. All rights reserved.