|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for Numeric properties.
Nested Class Summary |
Nested classes inherited from class org.joda.property.Property |
Property.Internal |
Field Summary | |
static java.lang.Class |
DEFAULT_TYPE
|
Method Summary | |
void |
add(double amount)
Add to the property's value |
void |
add(long amount)
Add to the property's value |
void |
add(java.lang.Object amount)
Add to the property's value |
int |
compareTo(double anotherValue)
Compare the property's value to the passed in value. |
int |
compareTo(long anotherValue)
Compare the property's value to the passed in value. |
void |
divideBy(double amount)
Divide the property's value by the specified argument |
void |
divideBy(long amount)
Divide the property's value by the specified argument |
void |
divideBy(java.lang.Object amount)
Divide the property's value by the specified argument |
double |
doubleValue()
Get the property's value as a double. |
boolean |
equals(double anotherValue)
Is the property's value equal to the passed in value. |
boolean |
equals(long anotherValue)
Is the property's value equal to the passed in value. |
float |
floatValue()
Get the property's value as a float. |
int |
intValue()
Get the property's value as an int. |
boolean |
isGreaterThan(double anotherValue)
Is the property's value greater than the passed in value. |
boolean |
isGreaterThan(long anotherValue)
Is the property's value greater than the passed in value. |
boolean |
isGreaterThan(java.lang.Object anotherValue)
Is the property's value greater than the passed in value. |
boolean |
isLessThan(double anotherValue)
Is the property's value less than the passed in value. |
boolean |
isLessThan(long anotherValue)
Is the property's value less than the passed in value. |
boolean |
isLessThan(java.lang.Object anotherValue)
Is the property's value less than the passed in value. |
long |
longValue()
Get the property's value as a long. |
void |
multiplyBy(double amount)
Multiply the property's value by the specified argument |
void |
multiplyBy(long amount)
Multiply the property's value by the specified argument |
void |
multiplyBy(java.lang.Object amount)
Multiply the property's value by the specified argument |
void |
negate()
Negate the current value of the property. |
void |
set(double propertyValue)
Set the property's value. |
void |
set(long propertyValue)
Set the property's value. |
void |
subtract(double amount)
Subtract from the property's value |
void |
subtract(long amount)
Subtract from the property's value |
void |
subtract(java.lang.Object amount)
Subtract from the property's value |
java.math.BigDecimal |
toBigDecimal()
Get the property's value as a BigDecimal. |
java.lang.Double |
toDouble()
Get the property's value as a Double. |
java.lang.Float |
toFloat()
Get the property's value as a Float. |
java.lang.Integer |
toInteger()
Get the property's value as an Integer. |
java.lang.Long |
toLong()
Get the property's value as a Long. |
java.lang.Number |
toNumber()
Get the property's value as a Number. |
Methods inherited from interface org.joda.property.type.DataProperty |
toDataString |
Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString |
Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final java.lang.Class DEFAULT_TYPE
Method Detail |
public java.lang.Number toNumber()
public java.lang.Integer toInteger()
public java.lang.Long toLong()
public java.lang.Float toFloat()
public java.lang.Double toDouble()
public java.math.BigDecimal toBigDecimal()
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public boolean equals(long anotherValue)
anotherValue
- a value to compare the property to
public boolean equals(double anotherValue)
anotherValue
- a value to compare the property to
public int compareTo(long anotherValue)
anotherValue
- a value to compare the property to
public int compareTo(double anotherValue)
anotherValue
- a value to compare the property to
public boolean isLessThan(long anotherValue)
anotherValue
- a value to compare the property to
public boolean isLessThan(double anotherValue)
anotherValue
- a value to compare the property to
public boolean isLessThan(java.lang.Object anotherValue)
anotherValue
- a value to compare the property to
public boolean isGreaterThan(long anotherValue)
anotherValue
- a value to compare the property to
public boolean isGreaterThan(double anotherValue)
anotherValue
- a value to compare the property to
public boolean isGreaterThan(java.lang.Object anotherValue)
anotherValue
- a value to compare the property to
public void set(long propertyValue)
propertyValue
- a value to set the property's value topublic void set(double propertyValue)
propertyValue
- a value to set the property's value topublic void add(long amount)
amount
- an amount to add to the property's valuepublic void add(double amount)
amount
- an amount to add to the property's valuepublic void add(java.lang.Object amount)
amount
- an amount to add to the property's valuepublic void subtract(long amount)
amount
- an amount to subtract from the property's valuepublic void subtract(double amount)
amount
- an amount to subtract from the property's valuepublic void subtract(java.lang.Object amount)
amount
- an amount to subtract from the property's valuepublic void multiplyBy(long amount)
amount
- an amount to multiply the property's value bypublic void multiplyBy(double amount)
amount
- an amount to multiply the property's value bypublic void multiplyBy(java.lang.Object amount)
amount
- an amount to multiply the property's value bypublic void divideBy(long amount)
amount
- an amount to divide the property's value bypublic void divideBy(double amount)
amount
- an amount to divide the property's value bypublic void divideBy(java.lang.Object amount)
amount
- an amount to divide the property's value bypublic void negate()
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |