| Modifier and Type | Field and Description |
|---|---|
| private K | key
Key of this |
| private V | value
Value of this this |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the given Object is
equal to this Pair else falsethe o)Object to test for
equality with this PairOverrides java. Test this |
| public K | |
| public V | |
| public int | Returns: hash code for thisPairOverrides java. Generate a hash code for this |
| public String | Returns: String representation of this PairOverrides java.
|
| key | back to summary |
|---|---|
| private K key Key of this | |
| value | back to summary |
|---|---|
| private V value Value of this this | |
| Pair | back to summary |
|---|---|
| public Pair(K key, V value) Creates a new pair
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Test this If the Two | |
| getKey | back to summary |
|---|---|
| public K getKey() Gets the key for this pair.
| |
| getValue | back to summary |
|---|---|
| public V getValue() Gets the value for this pair.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Generate a hash code for this The hash code is calculated using both the name and
the value of the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java.
The default name/value delimiter '=' is always used. | |