Package xyz.cofe.fn

Class Tuple2.Tuple2Impl<A,​B>

java.lang.Object
xyz.cofe.fn.Tuple2.Tuple2Impl<A,​B>
Type Parameters:
A - тип значения
All Implemented Interfaces:
java.io.Serializable, Tuple2<A,​B>
Enclosing interface:
Tuple2<A,​B>

public static class Tuple2.Tuple2Impl<A,​B>
extends java.lang.Object
implements Tuple2<A,​B>, java.io.Serializable
Реализация кортежа
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from interface xyz.cofe.fn.Tuple2

    Tuple2.Tuple2Impl<A,​B>
  • Constructor Summary

    Constructors 
    Constructor Description
    Tuple2Impl​(A a, B b)  
  • Method Summary

    Modifier and Type Method Description
    A a()
    Возвращает первый элемент пары
    B b()
    Возвращает второй элемент пары
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface xyz.cofe.fn.Tuple2

    add, apply, apply, apply
  • Constructor Details

  • Method Details

    • a

      public A a()
      Description copied from interface: Tuple2
      Возвращает первый элемент пары
      Specified by:
      a in interface Tuple2<A,​B>
      Returns:
      первый элемент пары
    • b

      public B b()
      Description copied from interface: Tuple2
      Возвращает второй элемент пары
      Specified by:
      b in interface Tuple2<A,​B>
      Returns:
      второй элемент пары
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object