类 Triple<A,B,C>
- java.lang.Object
-
- net.dongliu.commons.collection.Triple<A,B,C>
-
- 所有已实现的接口:
java.io.Serializable
public class Triple<A,B,C> extends java.lang.Object implements java.io.SerializableImmutable Tuple with three elements.- 另请参阅:
- 序列化表格
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object o)Afirst()The first value of this tupleinthashCode()static <A,B,C>
Triple<A,B,C>of(A first, B second, C third)Create new Triple.Bsecond()The second value of this tupleCthird()The third value of this tuplejava.lang.StringtoString()Triple<A,B,C>withFirst(A first)Create one new tuple, replace first value with new value.Triple<A,B,C>withSecond(B second)Create one new tuple, replace second value with new value.Triple<A,B,C>withThrid(C third)Create one new tuple, replace second value with new value.
-
-
-
方法详细资料
-
of
public static <A,B,C> Triple<A,B,C> of(A first, B second, C third)
Create new Triple. The values cannot be null
-
withFirst
public Triple<A,B,C> withFirst(A first)
Create one new tuple, replace first value with new value.
-
withSecond
public Triple<A,B,C> withSecond(B second)
Create one new tuple, replace second value with new value.
-
withThrid
public Triple<A,B,C> withThrid(C third)
Create one new tuple, replace second value with new value.
-
first
public A first()
The first value of this tuple
-
second
public B second()
The second value of this tuple
-
third
public C third()
The third value of this tuple
-
equals
public boolean equals(java.lang.Object o)
- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-