private static class AbstractGuiDriver.TextKey<F>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private F |
font
The font with which the metrics were computed.
|
private java.lang.String |
text
The text.
|
| Constructor and Description |
|---|
TextKey(java.lang.String text,
F font)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Check if this key is equal with the specified object.
|
int |
hashCode()
Compute an unique hash key for this text and font combination.
|
private final java.lang.String text
private final F font
public TextKey(java.lang.String text,
F font)
text - The text.font - The font with which the metrics were computed.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to check.