public static class PatternEngine.StorageKey
extends java.lang.Object
PatternEngine.storedObjects
map.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
category
Arbitrary category.
|
private java.lang.String |
id
Arbitrary id.
|
Constructor and Description |
---|
StorageKey(java.lang.String id)
Creates a key with no category specified.
|
StorageKey(java.lang.String category,
java.lang.String id)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test this object for equality (equivalence) with the given object.
|
int |
hashCode()
Calculate a hash code for this object.
|
java.lang.String |
toString()
Produce a string representation of the internal state of this object.
|
private final java.lang.String category
null
if no category is specified.private final java.lang.String id
public StorageKey(java.lang.String id)
id
- Arbitrary id.public StorageKey(java.lang.String category, java.lang.String id)
category
- Arbitrary category.id
- Arbitrary id.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to test.true
if this object is the same instance as the
given object, or it is considered equivalent to the given
object. StorageKey
instances are equivalent if
they contain the same category and id.public java.lang.String toString()
toString
in class java.lang.Object