Class PairImpl<K,V>

java.lang.Object
net.binis.codegen.objects.impl.PairImpl<K,V>
All Implemented Interfaces:
Pair<K,V>

public class PairImpl<K,V> extends Object implements Pair<K,V>
  • Field Details

    • key

      protected K key
    • value

      protected V value
  • Constructor Details

    • PairImpl

      public PairImpl()
  • Method Details

    • getKey

      public K getKey()
      Specified by:
      getKey in interface Pair<K,V>
    • getLeft

      public K getLeft()
      Specified by:
      getLeft in interface Pair<K,V>
    • getValue

      public V getValue()
      Specified by:
      getValue in interface Pair<K,V>
    • getRight

      public V getRight()
      Specified by:
      getRight in interface Pair<K,V>
    • key

      public Pair<K,V> key(K key)
      Specified by:
      key in interface Pair<K,V>
    • left

      public Pair<K,V> left(K left)
      Specified by:
      left in interface Pair<K,V>
    • value

      public Pair<K,V> value(V value)
      Specified by:
      value in interface Pair<K,V>
    • right

      public Pair<K,V> right(V right)
      Specified by:
      right in interface Pair<K,V>