public enum CacheType extends Enum<CacheType>
| Enum Constant and Description |
|---|
CHILDREN |
DIFF |
DOCUMENT |
LOCAL_DIFF |
NODE |
PREV_DOCUMENT |
| Modifier and Type | Method and Description |
|---|---|
abstract <K> int |
compareKeys(K a,
K b) |
abstract <K> K |
keyFromString(String key) |
abstract <K> String |
keyToString(K key) |
abstract <K> boolean |
shouldCache(DocumentNodeStore store,
K key) |
abstract <V> V |
valueFromString(DocumentNodeStore store,
DocumentStore docStore,
String value) |
static CacheType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract <V> String |
valueToString(V value) |
public static final CacheType NODE
public static final CacheType CHILDREN
public static final CacheType DIFF
public static final CacheType DOCUMENT
public static final CacheType PREV_DOCUMENT
public static final CacheType LOCAL_DIFF
public static final CacheType[] VALUES
public static CacheType[] values()
for (CacheType c : CacheType.values()) System.out.println(c);
public static CacheType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract <K> String keyToString(K key)
public abstract <K> K keyFromString(String key)
public abstract <K> int compareKeys(K a,
K b)
public abstract <V> String valueToString(V value)
public abstract <V> V valueFromString(DocumentNodeStore store, DocumentStore docStore, String value)
public abstract <K> boolean shouldCache(DocumentNodeStore store, K key)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.