Class Pair<K,V>

java.lang.Object
de.marcely.bedwars.tools.Pair<K,V>
Type Parameters:
K - Key type
V - Value type

public class Pair<K,V> extends Object
A convenience class to represent name-value pairs.
  • Constructor Details

    • Pair

      public Pair(@Nullable K key, @Nullable V value)
  • Method Details

    • getKey

      @Nullable public K getKey()
      Gets the key for this pair.
      Returns:
      The key of this pair
    • getValue

      @Nullable public V getValue()
      Gets the value for this pair.
      Returns:
      The value of this pair