类 Pair<A,​B>


  • public class Pair<A,​B>
    extends java.lang.Object
    Pair.
    作者:
    nacos
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private A first  
      private B second  
    • 构造器概要

      构造器 
      构造器 说明
      Pair​(A first, B second)  
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      A getFirst()  
      B getSecond()  
      static <A,​B>
      Pair<A,​B>
      with​(A first, B second)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • first

        private final A first
      • second

        private final B second
    • 构造器详细资料

      • Pair

        Pair​(A first,
             B second)
    • 方法详细资料

      • with

        public static <A,​B> Pair<A,​B> with​(A first,
                                                       B second)
      • getFirst

        public A getFirst()
      • getSecond

        public B getSecond()