public class ChildNodeEntriesMap extends Object implements ChildNodeEntries, CacheObject
| Modifier and Type | Field and Description |
|---|---|
protected static List<ChildNodeEntry> |
EMPTY |
protected HashMap<String,ChildNodeEntry> |
entries |
CAPACITY_THRESHOLD| Constructor and Description |
|---|
ChildNodeEntriesMap() |
ChildNodeEntriesMap(ChildNodeEntriesMap other) |
| Modifier and Type | Method and Description |
|---|---|
ChildNodeEntry |
add(ChildNodeEntry entry) |
Object |
clone() |
static ChildNodeEntriesMap |
deserialize(Binding binding) |
boolean |
equals(Object obj) |
ChildNodeEntry |
get(String name) |
Iterator<ChildNodeEntry> |
getAdded(ChildNodeEntries other)
Returns those entries that exist in
other but not in
this. |
int |
getCount() |
Iterator<ChildNodeEntry> |
getEntries(int offset,
int count) |
int |
getMemory()
The estimated amount of memory used, in bytes.
|
Iterator<ChildNodeEntry> |
getModified(ChildNodeEntries other)
Returns
this instance's entries that have namesakes in
other but with different ids. |
Iterator<String> |
getNames(int offset,
int count) |
Iterator<ChildNodeEntry> |
getRemoved(ChildNodeEntries other)
Returns those entries that exist in
this but not in
other. |
boolean |
inlined() |
ChildNodeEntry |
remove(String name) |
ChildNodeEntry |
rename(String oldName,
String newName) |
void |
serialize(Binding binding) |
protected static final List<ChildNodeEntry> EMPTY
protected HashMap<String,ChildNodeEntry> entries
public ChildNodeEntriesMap()
public ChildNodeEntriesMap(ChildNodeEntriesMap other)
public Object clone()
clone in interface ChildNodeEntriesclone in class Objectpublic boolean inlined()
inlined in interface ChildNodeEntriespublic int getCount()
getCount in interface ChildNodeEntriespublic ChildNodeEntry get(String name)
get in interface ChildNodeEntriespublic Iterator<String> getNames(int offset, int count)
getNames in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getEntries(int offset, int count)
getEntries in interface ChildNodeEntriespublic ChildNodeEntry add(ChildNodeEntry entry)
add in interface ChildNodeEntriespublic ChildNodeEntry remove(String name)
remove in interface ChildNodeEntriespublic ChildNodeEntry rename(String oldName, String newName)
rename in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getAdded(ChildNodeEntries other)
ChildNodeEntriesother but not in
this.getAdded in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getRemoved(ChildNodeEntries other)
ChildNodeEntriesthis but not in
other.getRemoved in interface ChildNodeEntriespublic Iterator<ChildNodeEntry> getModified(ChildNodeEntries other)
ChildNodeEntriesthis instance's entries that have namesakes in
other but with different ids.getModified in interface ChildNodeEntriespublic void serialize(Binding binding) throws Exception
serialize in interface ChildNodeEntriesExceptionpublic static ChildNodeEntriesMap deserialize(Binding binding) throws Exception
Exceptionpublic int getMemory()
CacheObjectgetMemory in interface CacheObjectCopyright © 2012-2015 The Apache Software Foundation. All Rights Reserved.