|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.navigation.Property
public class Property
Class representing a name/value Endeca property pair.
Method Summary | |
---|---|
int |
compareTo(Object o)
Compares this object to other Property o . |
boolean |
equals(Object o)
Compares the specified object with this for equality. |
Object |
getKey()
Gets the name of the property. |
Object |
getValue()
Gets the value of the property. |
int |
hashCode()
Generates the hash code for this object. |
Object |
setValue(Object value)
Unsupported method for Map.Entry interface compatibility. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Object getKey()
String
.
getKey
in interface Map.Entry
public Object getValue()
String
.
getValue
in interface Map.Entry
public Object setValue(Object value)
UnsupportedOperationException
setValue
in interface Map.Entry
UnsupportedOperationException
- If this method is called.public boolean equals(Object o)
equals
in interface Map.Entry
equals
in class Object
true
if the object can be cast as a
Map.Entry
and has the same key and value and
false
if not.public int hashCode()
hashCode
in interface Map.Entry
hashCode
in class Object
public int compareTo(Object o)
Property o
.
Casts o
as Property
and returns
a negative int if this is less than o
, zero
if they are the same, and a positive int if this is greater
than o
. This method is implemented so as
to support the comparable interface so that this class
can be used in Abstract classes such as TreeMap.
compareTo
in interface Comparable
ClassCastException
- If o
can't be
cast as a Property
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |