org.priha.core.values
Class LongValueImpl
java.lang.Object
org.priha.core.values.ValueImpl
org.priha.core.values.LongValueImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ValueImpl>, javax.jcr.Value
public class LongValueImpl
- extends ValueImpl
- implements javax.jcr.Value, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jcr.Value |
getBoolean, getStream |
LongValueImpl
public LongValueImpl(long value)
LongValueImpl
public LongValueImpl(java.lang.String value)
throws javax.jcr.ValueFormatException
- Throws:
javax.jcr.ValueFormatException
LongValueImpl
public LongValueImpl(LongValueImpl value)
getType
public int getType()
- Specified by:
getType
in interface javax.jcr.Value
getLong
public long getLong()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
- Specified by:
getLong
in interface javax.jcr.Value
- Overrides:
getLong
in class ValueImpl
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
getDate
public java.util.Calendar getDate()
- Specified by:
getDate
in interface javax.jcr.Value
- Overrides:
getDate
in class ValueImpl
getDouble
public double getDouble()
- Specified by:
getDouble
in interface javax.jcr.Value
- Overrides:
getDouble
in class ValueImpl
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
getString
public java.lang.String getString()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
- Specified by:
getString
in interface javax.jcr.Value
- Overrides:
getString
in class ValueImpl
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
toString
public java.lang.String toString()
- Overrides:
toString
in class ValueImpl