Package tenapull.util

Class KeyValueType<K,​V>

java.lang.Object
tenapull.util.KeyValueType<K,​V>
Type Parameters:
K - the key class
V - the value calss

public class KeyValueType<K,​V>
extends java.lang.Object
Represents a pair of Types, representing a key and a value
  • Constructor Summary

    Constructors 
    Constructor Description
    KeyValueType​(java.lang.Class<K> keyType, java.lang.Class<V> valueType)
    Instantiates a new Key value type.
    KeyValueType​(java.lang.Class<K> keyType, Type<V> valueType)
    Instantiates a new Key value type.
    KeyValueType​(Type<K> keyType, java.lang.Class<V> valueType)
    Instantiates a new Key value type.
    KeyValueType​(Type<K> keyType, Type<V> valueType)
    Instantiates a new Key value type.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    Type<K> getKeyType()
    Gets key type.
    Type<V> getValueType()
    Gets value type.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KeyValueType

      public KeyValueType​(Type<K> keyType, Type<V> valueType) throws java.lang.NullPointerException
      Instantiates a new Key value type.
      Parameters:
      keyType - the key type
      valueType - the value type
      Throws:
      java.lang.NullPointerException - if one of the arguments is null
    • KeyValueType

      public KeyValueType​(java.lang.Class<K> keyType, java.lang.Class<V> valueType) throws java.lang.NullPointerException
      Instantiates a new Key value type.
      Parameters:
      keyType - the key class
      valueType - the value class
      Throws:
      java.lang.NullPointerException - if one of the arguments is null
    • KeyValueType

      public KeyValueType​(java.lang.Class<K> keyType, Type<V> valueType) throws java.lang.NullPointerException
      Instantiates a new Key value type.
      Parameters:
      keyType - the key class
      valueType - the value type
      Throws:
      java.lang.NullPointerException - if one of the arguments is null
    • KeyValueType

      public KeyValueType​(Type<K> keyType, java.lang.Class<V> valueType) throws java.lang.NullPointerException
      Instantiates a new Key value type.
      Parameters:
      keyType - the key type
      valueType - the value class
      Throws:
      java.lang.NullPointerException - if one of the arguments is null
  • Method Details

    • getKeyType

      public Type<K> getKeyType()
      Gets key type.
      Returns:
      the key type
    • getValueType

      public Type<V> getValueType()
      Gets value type.
      Returns:
      the value type
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object