Interface Pair<A,​B>

Type Parameters:
A - type of the first component
B - type of the second component

public interface Pair<A,​B>
A Generic pair.
Since:
9.12.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static <F,​ S> Pair<F,​S>
    create​(F first, S second)
     
    Get the first component.
    Get the second component.
  • Method Details

    • create

      static <F,​ S> Pair<F,​S> create(F first, S second)
    • getFirst

      A getFirst()
      Get the first component.
      Returns:
      the first component
      Since:
      9.12.0
    • getSecond

      B getSecond()
      Get the second component.
      Returns:
      the second component
      Since:
      9.12.0