Class Pair<U extends Serializable,V extends Serializable>

java.lang.Object
com.vaadin.flow.internal.Pair<U,V>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RouteParam

public class Pair<U extends Serializable,V extends Serializable> extends Object implements Serializable
Generic class representing an immutable pair of values.

For internal use only. May be renamed or removed in a future release.

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • Pair

      public Pair(U u, V v)
      Creates a new pair.
      Parameters:
      u - the value of the first component
      v - the value of the second component
  • Method Details

    • getFirst

      public U getFirst()
      Gets the first component of the pair.
      Returns:
      the first component of the pair
    • getSecond

      public V getSecond()
      Gets the second component of the pair.
      Returns:
      the second component of the pair