Class KeyValuePair<K,V>

java.lang.Object
org.pushingpixels.radiance.component.api.common.KeyValuePair<K,V>
Type Parameters:
K - Key class.
V - Value class.

public final class KeyValuePair<K,V> extends Object
Generic key-value pair.
  • Field Details

    • key

      private K key
      Pair key.
    • value

      private V value
      Pair value.
  • Constructor Details

    • KeyValuePair

      public KeyValuePair(K key, V value)
      Creates a new pair.
      Parameters:
      key - Pair key.
      value - Pair value.
  • Method Details

    • getValue

      public V getValue()
      Returns the pair value.
      Returns:
      Pair value.
    • getKey

      public K getKey()
      Returns the pair key.
      Returns:
      Pair key.