|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neodatis.odb.impl.core.query.list.objects.AbstractBTreeCollection<E>
public abstract class AbstractBTreeCollection<E>
A collection that uses a BTree as an underlying system to provide ordered by Collections
Constructor Summary | |
---|---|
AbstractBTreeCollection()
|
|
AbstractBTreeCollection(int size,
OrderByConstants orderByType)
|
Method Summary | |
---|---|
boolean |
add(E o)
|
boolean |
addAll(java.util.Collection<? extends E> collection)
|
boolean |
addWithKey(int key,
E o)
Adds the object in the btree with the specific key |
boolean |
addWithKey(OdbComparable key,
E o)
Adds the object in the btree with the specific key |
abstract IBTree |
buildTree(int degree)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection collection)
|
E |
getFirst()
Return the first object of the collection, if exist |
protected OrderByConstants |
getOrderByType()
|
protected IBTree |
getTree()
|
boolean |
hasNext()
Inform if the internal Iterator has more objects |
boolean |
isEmpty()
|
java.util.Iterator<E> |
iterator()
|
java.util.Iterator<E> |
iterator(OrderByConstants newOrderByType)
Returns the collection iterator throughout the order by OrderByConstants |
E |
next()
Returns the next object of the internal iterator of the collection |
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection collection)
|
boolean |
removeByKey(OdbComparable key,
java.lang.Object value)
Removes an object by its key |
void |
reset()
Reset the internal iterator of the collection |
boolean |
retainAll(java.util.Collection collection)
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] objects)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public AbstractBTreeCollection(int size, OrderByConstants orderByType)
public AbstractBTreeCollection()
Method Detail |
---|
public abstract IBTree buildTree(int degree)
public E getFirst()
Objects
getFirst
in interface Objects<E>
public boolean hasNext()
Objects
hasNext
in interface Objects<E>
public E next()
Objects
next
in interface Objects<E>
public boolean add(E o)
add
in interface java.util.Collection<E>
public boolean addWithKey(OdbComparable key, E o)
addWithKey
in interface Objects<E>
key
- o
-
public boolean addWithKey(int key, E o)
addWithKey
in interface Objects<E>
key
- o
-
public boolean addAll(java.util.Collection<? extends E> collection)
addAll
in interface java.util.Collection<E>
public void clear()
clear
in interface java.util.Collection<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
public boolean containsAll(java.util.Collection collection)
containsAll
in interface java.util.Collection<E>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
public java.util.Iterator<E> iterator(OrderByConstants newOrderByType)
Objects
OrderByConstants
iterator
in interface Objects<E>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
public boolean removeByKey(OdbComparable key, java.lang.Object value)
Objects
removeByKey
in interface Objects<E>
value
- The object to be removed
public boolean removeAll(java.util.Collection collection)
removeAll
in interface java.util.Collection<E>
public boolean retainAll(java.util.Collection collection)
retainAll
in interface java.util.Collection<E>
public int size()
size
in interface java.util.Collection<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
public java.lang.Object[] toArray(java.lang.Object[] objects)
toArray
in interface java.util.Collection<E>
public void reset()
Objects
reset
in interface Objects<E>
protected OrderByConstants getOrderByType()
protected IBTree getTree()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |