Class OrthodoxDoubleValue
java.lang.Object
org.smallmind.bayeux.oumuamua.server.spi.json.orthodox.OrthodoxValue
org.smallmind.bayeux.oumuamua.server.spi.json.orthodox.OrthodoxDoubleValue
- All Implemented Interfaces:
NumberValue<OrthodoxValue>,Value<OrthodoxValue>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOrthodoxDoubleValue(OrthodoxValueFactory factory, double value) -
Method Summary
Methods inherited from class org.smallmind.bayeux.oumuamua.server.spi.json.orthodox.OrthodoxValue
getFactory, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.smallmind.bayeux.oumuamua.server.api.json.NumberValue
getTypeMethods inherited from interface org.smallmind.bayeux.oumuamua.server.api.json.Value
getFactory
-
Constructor Details
-
OrthodoxDoubleValue
-
-
Method Details
-
getNumberType
- Specified by:
getNumberTypein interfaceNumberValue<OrthodoxValue>
-
asNumber
- Specified by:
asNumberin interfaceNumberValue<OrthodoxValue>
-
asInt
public int asInt()- Specified by:
asIntin interfaceNumberValue<OrthodoxValue>
-
asLong
public long asLong()- Specified by:
asLongin interfaceNumberValue<OrthodoxValue>
-
asDouble
public double asDouble()- Specified by:
asDoublein interfaceNumberValue<OrthodoxValue>
-
encode
- Specified by:
encodein interfaceValue<OrthodoxValue>- Throws:
IOException
-