Package org.sblim.cimclient.internal.uri
Class RealValue
- java.lang.Object
-
- org.sblim.cimclient.internal.uri.Value
-
- org.sblim.cimclient.internal.uri.RealValue
-
public class RealValue extends Value
Class RealValue parses and encapsulates real values.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
doubleValue()
doubleValuefloat
floatValue()
floatValuejava.lang.String
getTypeInfo()
getTypeInfoboolean
isDouble()
isDoublestatic Value
parse(URIString pUriStr)
Parses a RealValue as a double precision value.static Value
parseDouble(URIString pUriStr)
parseDoublestatic Value
parseFloat(URIString pUriStr)
parseFloatjava.lang.String
toString()
-
-
-
Method Detail
-
parse
public static Value parse(URIString pUriStr)
Parses a RealValue as a double precision value.- Parameters:
pUriStr
-- Returns:
- Value
-
parseFloat
public static Value parseFloat(URIString pUriStr) throws java.lang.IllegalArgumentException
parseFloat- Parameters:
pUriStr
-- Returns:
- Value
- Throws:
java.lang.IllegalArgumentException
- if parsing failed
-
parseDouble
public static Value parseDouble(URIString pUriStr) throws java.lang.IllegalArgumentException
parseDouble- Parameters:
pUriStr
-- Returns:
- Value
- Throws:
java.lang.IllegalArgumentException
- if parsing failed
-
isDouble
public boolean isDouble()
isDouble- Returns:
- boolean
-
floatValue
public float floatValue()
floatValue- Returns:
- float
-
doubleValue
public double doubleValue()
doubleValue- Returns:
- double
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
getTypeInfo
public java.lang.String getTypeInfo()
Description copied from class:Value
getTypeInfo- Specified by:
getTypeInfo
in classValue
- Returns:
- the type description string of the Value.
- See Also:
Value.getTypeInfo()
-
-