public class Property extends Object implements Comparable, Encodable, Serializable
Modifier and Type | Field and Description |
---|---|
String |
name |
Object |
value |
serialVersionUID
Constructor and Description |
---|
Property() |
Property(String theName,
Object theValue) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object other)
Compare this object with another.
|
static Object |
getValue(HasProperties obj,
String name,
Object def) |
void |
set(String name,
Object value) |
String |
toString()
Return a String representation of this object.
|
Property |
zero()
Clears the name and value fields and returns itself.
|
public String toString()
Object
public int compareTo(Object other)
Comparable
compareTo
in interface Comparable
public Property zero()
public static Object getValue(HasProperties obj, String name, Object def)