|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.style.Key
public class Key extends java.lang.Object implements java.io.Serializable
Stylesheet property key. It is used to speed up the search. It intern's and hashes the subkeys in advance and defines a incomplete but fast equals function.
| Constructor and Description |
|---|
Key(java.lang.String tag,
java.lang.String attribute)
Constructs a new Key with the specified tag and attribute. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equals(Key otherKey)
|
boolean |
equals(java.lang.Object o)
Indicates whether some other key is "equal to" this one. |
java.lang.String |
getAttribute()
Returns the attribute name of the Key. |
java.lang.String |
getTag()
Returns a tag of the Key. |
int |
hashCode()
Returns the hash code value of the Key object. |
java.lang.String |
toString()
Returns the string representation of the Key object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Key(java.lang.String tag,
java.lang.String attribute)
Key with the specified tag and attribute.
tag - the tagattribute - the attribute name| Method Detail |
|---|
public java.lang.String getTag()
Key.
public java.lang.String getAttribute()
Key.
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
tag.hashCode() ^ attribute.hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compareprotected boolean equals(Key otherKey)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||