Class StringValue
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.StringValue
-
- All Implemented Interfaces:
CacheValue
public final class StringValue extends java.lang.Object implements CacheValue
A cache value wrapping a simple string.
-
-
Constructor Summary
Constructors Constructor Description StringValue(@NotNull java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
boolean
equals(java.lang.Object obj)
static StringValue
fromString(java.lang.String value)
int
getMemory()
The estimated amount of memory used by this object, in bytes.static int
getMemory(@NotNull java.lang.String s)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getMemory
public int getMemory()
Description copied from interface:CacheValue
The estimated amount of memory used by this object, in bytes.- Specified by:
getMemory
in interfaceCacheValue
- Returns:
- the estimated number of bytes
-
getMemory
public static int getMemory(@NotNull @NotNull java.lang.String s)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asString
public java.lang.String asString()
-
fromString
public static StringValue fromString(java.lang.String value)
-
-