Package nl.vpro.util

Class Pair<F,S>

java.lang.Object
nl.vpro.util.Pair<F,S>
All Implemented Interfaces:
Map.Entry<F,S>

public class Pair<F,S> extends Object implements Map.Entry<F,S>
Since:
1.63
Author:
Michiel Meeuwissen
  • Method Details

    • of

      public static <F, S> Pair<F,S> of(F first, S second)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKey

      public F getKey()
      Specified by:
      getKey in interface Map.Entry<F,S>
    • getValue

      public S getValue()
      Specified by:
      getValue in interface Map.Entry<F,S>
    • setValue

      public S setValue(S value)
      Specified by:
      setValue in interface Map.Entry<F,S>
    • builder

      public static <F, S> Pair.Builder<F,S> builder()
    • getFirst

      public F getFirst()
    • getFirstDescription

      public String getFirstDescription()
    • getSecond

      public S getSecond()
    • getSecondDescription

      public String getSecondDescription()
    • setFirst

      public void setFirst(F first)
    • setFirstDescription

      public void setFirstDescription(String firstDescription)
    • setSecond

      public void setSecond(S second)
    • setSecondDescription

      public void setSecondDescription(String secondDescription)
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map.Entry<F,S>
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<F,S>
      Overrides:
      hashCode in class Object
    • of

      public static <F, S> Pair<F,S> of(F first, String firstDescription, S second, String secondDescription)