|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.lang.Record<K,V>
K - The type of the record's key.V - The type of the record's value.public class Record<K,V>
This object represents a database record, i.e. a key and a value.
An instance of this class is immutable. However, its key or value may be mutable, and clients should make sure not to modify them.
| Constructor Summary | |
|---|---|
Record(K key,
V value)
Create a new record. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
K |
getKey()
Get the record's key. |
V |
getValue()
Get the record's value. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Record(K key,
V value)
key - The key.value - The value.| Method Detail |
|---|
public K getKey()
public V getValue()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||