public class SlotPropertyEntry extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SlotPropertyEntry>
Constructor and Description |
---|
SlotPropertyEntry(java.lang.String name,
java.lang.Object value)
Create slot property entry.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SlotPropertyEntry o)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getName()
Return a slot name.
|
java.lang.Object |
getValue()
Return a slot value.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setName(java.lang.String name)
Set a slot name.
|
void |
setValue(java.lang.Object value)
Set a slot value.
|
java.lang.String |
toString()
Convert a slot entry value into string.
|
public SlotPropertyEntry(java.lang.String name, java.lang.Object value)
name
- slot property namevalue
- slot property valuepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the slot name to setpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the slot value to setpublic java.lang.String toString()
toString
in class java.lang.Object
getValue()
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.Object.equals(java.lang.Object)
public int compareTo(SlotPropertyEntry o)
compareTo
in interface java.lang.Comparable<SlotPropertyEntry>
o
- the Object to be compared.