Package org.apache.jackrabbit.value
Class StringValue
- java.lang.Object
-
- org.apache.jackrabbit.value.BaseValue
-
- org.apache.jackrabbit.value.StringValue
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE
-
Constructor Summary
Constructors Constructor Description StringValue(java.lang.String text)Constructs aStringValueobject representing a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.inthashCode()Returns zero to satisfy the Object equals/hashCode contract.-
Methods inherited from class org.apache.jackrabbit.value.BaseValue
getBinary, getBoolean, getDate, getDecimal, getDouble, getLong, getStream, getString, getType
-
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
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.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument;falseotherwise.
-
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.- Overrides:
hashCodein classjava.lang.Object- Returns:
- always zero
- See Also:
Object.hashCode()
-
-