Class StringValue
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.StringValue
-
- All Implemented Interfaces:
CacheValue
public final class StringValue extends Object implements CacheValue
A cache value wrapping a simple string.
-
-
Field Summary
Fields Modifier and Type Field Description static StringValue
EMPTY
-
Constructor Summary
Constructors Constructor Description StringValue(@NotNull String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
boolean
equals(Object obj)
static StringValue
fromString(String value)
int
getMemory()
The estimated amount of memory used by this object, in bytes.static int
getMemory(@NotNull String s)
int
hashCode()
String
toString()
-
-
-
Field Detail
-
EMPTY
public static final StringValue EMPTY
-
-
Constructor Detail
-
StringValue
public StringValue(@NotNull @NotNull String value)
-
-
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 String s)
-
asString
public String asString()
-
fromString
public static StringValue fromString(String value)
-
-