Methods Summary |
---|
public boolean | add(java.lang.Object x)
if (x == null) throw new IllegalArgumentException();
return root.insert(x, -1);
|
public void | clear()
root = new BTreeNode(null);
size = 0;
|
private int | compare(java.lang.Object x, java.lang.Object y)
return (comparator == null ? ((Comparable)x).compareTo(y) : comparator.compare(x, y));
|
public boolean | contains(java.lang.Object x)
return root.includes(x);
|
public static java.util.ArrayList | findProperties(int start, int end, org.apache.poi.hdf.model.util.BTreeSet$BTreeNode root)
ArrayList results = new ArrayList();
BTreeSet.Entry[] entries = root.entries;
for(int x = 0; x < entries.length; x++)
{
if(entries[x] != null)
{
BTreeSet.BTreeNode child = entries[x].child;
PropertyNode xNode = (PropertyNode)entries[x].element;
if(xNode != null)
{
int xStart = xNode.getStart();
int xEnd = xNode.getEnd();
if(xStart < end)
{
if(xStart >= start)
{
if(child != null)
{
ArrayList beforeItems = findProperties(start, end, child);
results.addAll(beforeItems);
}
results.add(xNode);
}
else if(start < xEnd)
{
results.add(xNode);
//break;
}
}
else
{
if(child != null)
{
ArrayList beforeItems = findProperties(start, end, child);
results.addAll(beforeItems);
}
break;
}
}
else if(child != null)
{
ArrayList afterItems = findProperties(start, end, child);
results.addAll(afterItems);
}
}
else
{
break;
}
}
return results;
|
public java.util.Iterator | iterator()
return new Iterator();
|
public boolean | remove(java.lang.Object x)
if (x == null) return false;
return root.delete(x, -1);
|
public int | size()
return size;
|