|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue
org.exoplatform.services.jcr.rmi.api.value.DoubleValue
public class DoubleValue
The DoubleValue class implements the committed value state for Double values as a
part of the State design pattern (Gof) used by this package.
SerialValue,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue |
|---|
orderNumber |
| Constructor Summary | |
|---|---|
protected |
DoubleValue(double value)
Creates an instance for the given double value. |
protected |
DoubleValue(java.lang.String value)
Creates an instance for the given string representation of a double. |
| Method Summary | |
|---|---|
java.util.Calendar |
getDate()
Returns a Calendar instance interpreting the double as the time in milliseconds
since the epoch (1.1.1970, 0:00, UTC). |
double |
getDouble()
Returns the double value. |
long |
getLength()
|
long |
getLong()
Returns the value converted to a long. |
int |
getOrderNumber()
|
java.lang.String |
getString()
Returns the double as a string converted by the Double.toString(double). |
int |
getType()
Returns PropertyType.DOUBLE. |
protected static double |
toDouble(java.lang.String value)
Returns the double value represented by the string value. |
| Methods inherited from class org.exoplatform.services.jcr.rmi.api.value.BaseNonStreamValue |
|---|
getBoolean, getReference, getStream, getValueFormatException, setOrderNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exoplatform.services.jcr.core.value.ExtendedValue |
|---|
getReference, setOrderNumber |
| Methods inherited from interface javax.jcr.Value |
|---|
getBoolean, getStream |
| Constructor Detail |
|---|
protected DoubleValue(double value)
value.
protected DoubleValue(java.lang.String value)
throws javax.jcr.ValueFormatException
This implementation uses the Double.valueOf(String) method to convert the string
to a double.
javax.jcr.ValueFormatException - if the string value cannot be parsed to double.| Method Detail |
|---|
protected static double toDouble(java.lang.String value)
throws javax.jcr.ValueFormatException
value.
javax.jcr.ValueFormatException - if the string value cannot be parsed to double.public int getType()
PropertyType.DOUBLE.
getType in interface javax.jcr.Value
public java.util.Calendar getDate()
throws javax.jcr.ValueFormatException
Calendar instance interpreting the double as the time in milliseconds
since the epoch (1.1.1970, 0:00, UTC).
getDate in interface javax.jcr.ValuegetDate in class BaseNonStreamValuejavax.jcr.ValueFormatException - If the value cannot be converted to a Calendar instance.public double getDouble()
getDouble in interface javax.jcr.ValuegetDouble in class BaseNonStreamValuepublic java.lang.String getString()
Double.toString(double).
getString in interface javax.jcr.Valuepublic long getLong()
getLong in interface javax.jcr.ValuegetLong in class BaseNonStreamValuepublic long getLength()
getLength in interface ExtendedValuepublic int getOrderNumber()
getOrderNumber in interface ExtendedValuegetOrderNumber in class BaseNonStreamValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||