|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.properties.Property<T>
T
- type of the propertypublic class Property<T>
A property that uses a string for identification.
Constructor Summary | |
---|---|
Property(IProperty<T> other,
T thedefaultValue)
Creates a property using another property as identifier, but changing the default value. |
|
Property(String theid)
Creates a property with given identifier and null as default value. |
|
Property(String theid,
T thedefaultValue)
Creates a property with given identifier and default value. |
Method Summary | |
---|---|
int |
compareTo(IProperty<?> other)
|
boolean |
equals(Object obj)
|
T |
getDefault()
Returns the default value of this property. |
Object |
getIdentifier()
Returns an object that can be used as identifier for this property. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Property(String theid)
null
as default value.
theid
- the identifierpublic Property(String theid, T thedefaultValue)
theid
- the identifierthedefaultValue
- the default valuepublic Property(IProperty<T> other, T thedefaultValue)
other
- another propertythedefaultValue
- the new default valueMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public T getDefault()
getDefault
in interface IProperty<T>
public Object getIdentifier()
getIdentifier
in interface IProperty<T>
public int compareTo(IProperty<?> other)
compareTo
in interface Comparable<IProperty<?>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |