Package org.apache.jackrabbit.value
Class StringValue
java.lang.Object
org.apache.jackrabbit.value.BaseValue
org.apache.jackrabbit.value.StringValue
- All Implemented Interfaces:
Value
A
StringValue provides an implementation
of the Value interface representing a string value.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringValue(String text) Constructs aStringValueobject representing a string. -
Method Summary
Methods inherited from class org.apache.jackrabbit.value.BaseValue
getBinary, getBoolean, getDate, getDecimal, getDouble, getLong, getStream, getString, getType
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
StringValue
Constructs aStringValueobject representing a string.- Parameters:
text- the string thisStringValueshould represent
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one.The result is
trueif and only if the argument is notnulland is aStringValueobject that represents the same value as this object. -
hashCode
public int hashCode()Returns zero to satisfy the Object equals/hashCode contract. This class is mutable and not meant to be used as a hash key.
-