Package de.uplanet.lucy.server.ixvalue
Class IxDoubleValue
java.lang.Object
de.uplanet.lucy.server.ixvalue.AbstractIxValue
de.uplanet.lucy.server.ixvalue.IxDoubleValue
- All Implemented Interfaces:
- IIxValue
public final class IxDoubleValue
extends de.uplanet.lucy.server.ixvalue.AbstractIxValue
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns a big decimal value.booleanReturns the a boolean value.doubleasDouble()Returns a double value.intasInt()Returns a integer value.longasLong()Returns a long value.de.uplanet.lucy.server.dataobjects.IValueHolder<?>Returns the value as an value holder.getValue()Returns the physical value.booleanReturnstrueon a primitive value type like integer or boolean.Methods inherited from class de.uplanet.lucy.server.ixvalue.AbstractIxValueasBigDecimal, asBoolean, asDate, asDate, asDouble, asInt, asLong, asString, asString, asTime, asTime, asTimestamp, asTimestamp, getType, hasValue
- 
Constructor Details- 
IxDoubleValuepublic IxDoubleValue(double p_dValue) - Parameters:
- p_dValue- The value
 
- 
IxDoubleValue- Parameters:
- p_value- The value (could be- null)
 
 
- 
- 
Method Details- 
getValueDescription copied from interface:IIxValueReturns the physical value. Mostly an string value. For normal use cases, please use the- IIxValue.asBigDecimal()
- IIxValue.asBigDecimal(BigDecimal)
- IIxValue.asBoolean()
- IIxValue.asBoolean(boolean)
- IIxValue.asDate()
- IIxValue.asDate(Date)
- IIxValue.asDouble()
- IIxValue.asDouble(double)
- IIxValue.asInt()
- IIxValue.asInt(int)
- IIxValue.asLong()
- IIxValue.asLong(long)
- IIxValue.asString()
- IIxValue.asString(String)
- IIxValue.asTime()
- IIxValue.asTime(Date)
- IIxValue.asTimestamp()
- IIxValue.asTimestamp(Timestamp)
 - Returns:
- Returns the value (could be null).
 
- 
asValueHolderpublic de.uplanet.lucy.server.dataobjects.IValueHolder<?> asValueHolder()Description copied from interface:IIxValueReturns the value as an value holder.- Returns:
- Converts a IIxValue to an value holder.
 
- 
asBooleanpublic boolean asBoolean()Description copied from interface:IIxValueReturns the a boolean value.Cast Rules: String "0" = false "1" = true "true" = true "false" = false Numeric (int, long, double): 0 = false 1 = true- Returns:
- Returns the value as an boolean.
 
- 
asDoublepublic double asDouble()Description copied from interface:IIxValueReturns a double value.Cast Rules: String Double.parseDouble(value) Numeric Types (double)value- Returns:
- Returns the value as an double.
 
- 
asIntpublic int asInt()Description copied from interface:IIxValueReturns a integer value.Cast Rules: String Integer.parseInteger(value) Numeric Types (int)value- Returns:
- Returns the value as an integer.
 
- 
asLongpublic long asLong()Description copied from interface:IIxValueReturns a long value.Cast Rules: String Long.parseLong(value) Numeric Types (long)value- Returns:
- Returns the value as an long.
 Throws an exception if IIxValue.hasValue()==falseor the value type cannot be cast to an long.
 
- 
asBigDecimalDescription copied from interface:IIxValueReturns a big decimal value.Cast Rules: String new BigDecimal(value) Numeric Types new BigDecimalvalue)- Returns:
- Returns the value as an big decimal or null if IIxValue.hasValue()==false.
 
- 
isPrimitivepublic boolean isPrimitive()Description copied from interface:IIxValueReturnstrueon a primitive value type like integer or boolean.- Returns:
- Returns trueif the value represent an primitive type like a boolean, integer...
 
 
-