Package tenapull.util
Class KeyValueType<K,V>
java.lang.Object
tenapull.util.KeyValueType<K,V>
- Type Parameters:
K
- the key classV
- 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()
-
Constructor Details
-
KeyValueType
Instantiates a new Key value type.- Parameters:
keyType
- the key typevalueType
- 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.NullPointerExceptionInstantiates a new Key value type.- Parameters:
keyType
- the key classvalueType
- 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.NullPointerExceptionInstantiates a new Key value type.- Parameters:
keyType
- the key classvalueType
- 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.NullPointerExceptionInstantiates a new Key value type.- Parameters:
keyType
- the key typevalueType
- the value class- Throws:
java.lang.NullPointerException
- if one of the arguments is null
-
-
Method Details
-
getKeyType
Gets key type.- Returns:
- the key type
-
getValueType
Gets value type.- Returns:
- the value type
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-