|
||||||||||
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.
Field Summary | |
---|---|
static Comparable<?> |
NEGATIVE_INFINITY
the default lower bound, which is smaller than everything else. |
static Comparable<?> |
POSITIVE_INFINITY
the default upper bound, which is greater than everything else. |
Constructor Summary | |
---|---|
Property(IProperty<T> other,
T thedefaultValue)
Creates a property using another property as identifier, but changing the default value. |
|
Property(IProperty<T> other,
T thedefaultValue,
Comparable<T> thelowerBound)
Creates a property using another property as identifier, but changing the default value and lower bound. |
|
Property(IProperty<T> other,
T thedefaultValue,
Comparable<T> thelowerBound,
Comparable<T> theupperBound)
Creates a property using another property as identifier, but changing the default value, lower bound, and upper bound. |
|
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. |
|
Property(String theid,
T thedefaultValue,
Comparable<T> thelowerBound)
Creates a property with given identifier, default value, and lower bound. |
|
Property(String theid,
T thedefaultValue,
Comparable<T> thelowerBound,
Comparable<T> theupperBound)
Creates a property with given identifier, default value, and lower and upper bound. |
Method Summary | |
---|---|
int |
compareTo(IProperty<?> other)
Compares this with another Object. |
boolean |
equals(Object obj)
|
T |
getDefault()
Returns the default value of this property. |
String |
getId()
Returns an identifier string for this property. |
Comparable<T> |
getLowerBound()
Returns the lower bound of this property. |
Comparable<T> |
getUpperBound()
Returns the upper bound of this property. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Comparable<?> NEGATIVE_INFINITY
public static final Comparable<?> POSITIVE_INFINITY
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(String theid, T thedefaultValue, Comparable<T> thelowerBound)
theid
- the identifierthedefaultValue
- the default valuethelowerBound
- the lower boundpublic Property(String theid, T thedefaultValue, Comparable<T> thelowerBound, Comparable<T> theupperBound)
theid
- the identifierthedefaultValue
- the default valuethelowerBound
- the lower bound, or null
if the default lower bound shall be takentheupperBound
- the upper boundpublic Property(IProperty<T> other, T thedefaultValue)
other
- another propertythedefaultValue
- the new default valuepublic Property(IProperty<T> other, T thedefaultValue, Comparable<T> thelowerBound)
other
- another propertythedefaultValue
- the new default valuethelowerBound
- the new lower boundpublic Property(IProperty<T> other, T thedefaultValue, Comparable<T> thelowerBound, Comparable<T> theupperBound)
other
- another propertythedefaultValue
- the new default valuethelowerBound
- the new lower boundtheupperBound
- the new upper boundMethod 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 Comparable<T> getLowerBound()
getLowerBound
in interface IProperty<T>
public Comparable<T> getUpperBound()
getUpperBound
in interface IProperty<T>
public String getId()
getId
in interface IProperty<T>
public int compareTo(IProperty<?> other)
compareTo
in interface Comparable<IProperty<?>>
other
- the object to compare with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |