Class Pair<L,R>

java.lang.Object
org.bonitasoft.engine.commons.Pair<L,R>
All Implemented Interfaces:
Serializable, Map.Entry<L,R>

public class Pair<L,R> extends Object implements Serializable, Map.Entry<L,R>
Author:
Baptiste Mesta
See Also:
  • Constructor Details

    • Pair

      public Pair(L left, R right)
  • Method Details

    • of

      public static <L, R> Pair<L,R> of(L left, R right)
    • pair

      public static <L, R> Pair<L,R> pair(L left, R right)
    • mapOf

      public static <L, R> Map<L,R> mapOf(Pair<L,R>... entries)
    • getLeft

      public L getLeft()
    • getRight

      public R getRight()
    • getKey

      public final L getKey()
      Specified by:
      getKey in interface Map.Entry<L,R>
    • getValue

      public R getValue()
      Specified by:
      getValue in interface Map.Entry<L,R>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map.Entry<L,R>
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Map.Entry<L,R>
      Overrides:
      equals in class Object
    • toString

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

      public R setValue(R right)
      Specified by:
      setValue in interface Map.Entry<L,R>
    • setKey

      public L setKey(L left)