org.priha.core.values
Class DoubleValueImpl
java.lang.Object
org.priha.core.values.ValueImpl
org.priha.core.values.DoubleValueImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ValueImpl>
public class DoubleValueImpl
- extends ValueImpl
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DoubleValueImpl
public DoubleValueImpl(double value)
DoubleValueImpl
public DoubleValueImpl(java.lang.String value)
throws ValueFormatException
- Throws:
ValueFormatException
DoubleValueImpl
public DoubleValueImpl(DoubleValueImpl value)
getType
public int getType()
getDate
public java.util.Calendar getDate()
- Overrides:
getDate
in class ValueImpl
getLong
public long getLong()
- Overrides:
getLong
in class ValueImpl
getDouble
public double getDouble()
throws ValueFormatException,
java.lang.IllegalStateException,
RepositoryException
- Overrides:
getDouble
in class ValueImpl
- Throws:
ValueFormatException
java.lang.IllegalStateException
RepositoryException
getString
public java.lang.String getString()
throws ValueFormatException,
java.lang.IllegalStateException,
RepositoryException
- Overrides:
getString
in class ValueImpl
- Throws:
ValueFormatException
java.lang.IllegalStateException
RepositoryException
compareTo
public int compareTo(ValueImpl value)
- Description copied from class:
ValueImpl
- By default, does String comparison, which means it may fail. Subclasses are expected
to override.
- Specified by:
compareTo
in interface java.lang.Comparable<ValueImpl>
- Overrides:
compareTo
in class ValueImpl
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
toString
public java.lang.String toString()
- Overrides:
toString
in class ValueImpl
getSize
public long getSize()
- Description copied from class:
ValueImpl
- Returns the approximate size of this object in bytes. If not determinable,
returns -1;
- Overrides:
getSize
in class ValueImpl
- Returns: