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 StringValueEMPTY
-
Constructor Summary
Constructors Constructor Description StringValue(@NotNull String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()booleanequals(Object obj)static StringValuefromString(String value)intgetMemory()The estimated amount of memory used by this object, in bytes.static intgetMemory(@NotNull String s)inthashCode()StringtoString()
-
-
-
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:CacheValueThe estimated amount of memory used by this object, in bytes.- Specified by:
getMemoryin 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)
-
-