Interface Tuple1<A>

Type Parameters:
A - Тип элемента
All Superinterfaces:
Serializable
All Known Implementing Classes:
Tuple1.Tuple1Impl

public sealed interface Tuple1<A> extends Serializable permits Tuple1.Tuple1Impl<A>
Кортеж из одного элемента
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    _1()
    Возвращает элемент кортежа
    default <B> Tuple2<A,B>
    append(B b)
     
    default <RES> RES
    map(Fn1<A,RES> f)
     
    static <A> Tuple1<A>
    of(A a)
     
  • Method Details

    • _1

      A _1()
      Возвращает элемент кортежа
      Returns:
      элемент
    • map

      default <RES> RES map(Fn1<A,RES> f)
    • append

      default <B> Tuple2<A,B> append(B b)
    • of

      static <A> Tuple1<A> of(A a)