类 Triple<A,​B,​C>

  • 所有已实现的接口:
    java.io.Serializable

    public class Triple<A,​B,​C>
    extends java.lang.Object
    implements java.io.Serializable
    Immutable Tuple with three elements.
    另请参阅:
    序列化表格
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean equals​(java.lang.Object o)  
      A first()
      The first value of this tuple
      int hashCode()  
      static <A,​B,​C>
      Triple<A,​B,​C>
      of​(A first, B second, C third)
      Create new Triple.
      B second()
      The second value of this tuple
      C third()
      The third value of this tuple
      java.lang.String toString()  
      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.
      • 从类继承的方法 java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 方法详细资料

      • 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