Package pulse.util
Class ImmutableDataEntry<T,R>
- java.lang.Object
-
- pulse.util.ImmutableDataEntry<T,R>
-
- Type Parameters:
T- the keyR- the value
- All Implemented Interfaces:
Serializable
public class ImmutableDataEntry<T,R> extends Object implements Serializable
ADataEntryis an immutable ordered pair of an instance ofT, which is considered to be the 'key', and an instance ofR, which is considered to be the 'value'.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImmutableDataEntry(T key, R value)Constructs a newDataEntryfromkeyandvalue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetKey()Gets the key objectRgetValue()Gets the value objectStringtoString()
-