K - The type of the key in the association.V - The type of the value in the association.public class Association<K,V> extends java.lang.Object implements java.lang.Comparable<Association<K,V>>, Composite
| Modifier and Type | Field and Description |
|---|---|
K |
key
The key in the association.
|
V |
value
The value in the association.
|
| Constructor and Description |
|---|
Association(K key,
V value)
This constructor creates a new key-value association.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Association<K,V> that) |
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String indentation) |
public final K key
public V value
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Association<K,V> that)
compareTo in interface java.lang.Comparable<Association<K,V>>public java.lang.String toString()
Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.