org.apache.jackrabbit.mk.model
Class ChildNodeEntriesMap

java.lang.Object
  extended by org.apache.jackrabbit.mk.model.ChildNodeEntriesMap
All Implemented Interfaces:
Cloneable, ChildNodeEntries
Direct Known Subclasses:
ChildNodeEntriesTree.Bucket

public class ChildNodeEntriesMap
extends Object
implements ChildNodeEntries


Field Summary
protected static List<ChildNode> EMPTY
           
protected  HashMap<String,ChildNode> entries
           
 
Fields inherited from interface org.apache.jackrabbit.mk.model.ChildNodeEntries
CAPACITY_THRESHOLD
 
Method Summary
 ChildNode add(ChildNode entry)
           
 Object clone()
           
static ChildNodeEntriesMap deserialize(Binding binding)
           
 boolean equals(Object obj)
           
 ChildNode get(String name)
           
 Iterator<ChildNode> getAdded(ChildNodeEntries other)
          Returns those entries that exist in other but not in this.
 int getCount()
           
 Iterator<ChildNode> getEntries(int offset, int count)
           
 Iterator<ChildNode> 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<ChildNode> getRemoved(ChildNodeEntries other)
          Returns those entries that exist in this but not in other.
 boolean inlined()
           
 ChildNode remove(String name)
           
 ChildNode rename(String oldName, String newName)
           
 void serialize(Binding binding)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

protected static final List<ChildNode> EMPTY

entries

protected HashMap<String,ChildNode> entries
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

clone

public Object clone()
Specified by:
clone in interface ChildNodeEntries
Overrides:
clone in class Object

inlined

public boolean inlined()
Specified by:
inlined in interface ChildNodeEntries

getCount

public int getCount()
Specified by:
getCount in interface ChildNodeEntries

get

public ChildNode get(String name)
Specified by:
get in interface ChildNodeEntries

getNames

public Iterator<String> getNames(int offset,
                                 int count)
Specified by:
getNames in interface ChildNodeEntries

getEntries

public Iterator<ChildNode> getEntries(int offset,
                                      int count)
Specified by:
getEntries in interface ChildNodeEntries

add

public ChildNode add(ChildNode entry)
Specified by:
add in interface ChildNodeEntries

remove

public ChildNode remove(String name)
Specified by:
remove in interface ChildNodeEntries

rename

public ChildNode rename(String oldName,
                        String newName)
Specified by:
rename in interface ChildNodeEntries

getAdded

public Iterator<ChildNode> getAdded(ChildNodeEntries other)
Description copied from interface: ChildNodeEntries
Returns those entries that exist in other but not in this.

Specified by:
getAdded in interface ChildNodeEntries
Returns:

getRemoved

public Iterator<ChildNode> getRemoved(ChildNodeEntries other)
Description copied from interface: ChildNodeEntries
Returns those entries that exist in this but not in other.

Specified by:
getRemoved in interface ChildNodeEntries
Returns:

getModified

public Iterator<ChildNode> getModified(ChildNodeEntries other)
Description copied from interface: ChildNodeEntries
Returns this instance's entries that have namesakes in other but with different ids.

Specified by:
getModified in interface ChildNodeEntries
Returns:

serialize

public void serialize(Binding binding)
               throws Exception
Specified by:
serialize in interface ChildNodeEntries
Throws:
Exception

deserialize

public static ChildNodeEntriesMap deserialize(Binding binding)
                                       throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.