org.ozoneDB.collections
Interface _BaseList_SubList

All Superinterfaces:
BaseList, java.util.Collection, java.util.List, OzoneCollection, org.ozoneDB.OzoneCompatibleOrProxy, OzoneList, org.ozoneDB.OzoneRemote
All Known Implementing Classes:
_BaseList_RandomAccessSubListImpl, _BaseList_SubListImpl

public interface _BaseList_SubList
extends BaseList

This class follows the implementation requirements set forth in AbstractList.subList(int, int). It matches Sun's implementation by using a non-public top-level class in the same package.

Author:
Original author unknown, Eric Blake , ported to Ozone by Leo Mekenkamp

Method Summary
 void _org_ozoneDB_checkBoundsExclusive(int index)
          This method checks that a value is between 0 (inclusive) and size (exclusive).
 void _org_ozoneDB_checkBoundsInclusive(int index)
          This method checks that a value is between 0 and size (inclusive).
 void _org_ozoneDB_checkMod()
          This method checks the two modCount fields to ensure that there has not been a concurrent modification, returning if all is okay.
 int _org_ozoneDB_getOffset()
          Returns the offset of this sublist relative to the backing list.
 void _org_ozoneDB_incSize(int amount)
          Called by an iterator when it removes an item from this sublist or inserts an item.
 void _org_ozoneDB_syncModCountWithBackingList()
           
 
Methods inherited from interface org.ozoneDB.collections.BaseList
_org_ozoneDB_emptyClientCollection, _org_ozoneDB_getModCount, _org_ozoneDB_removeRange
 
Methods inherited from interface org.ozoneDB.collections.OzoneList
add, addAll, getClientList, remove, set
 
Methods inherited from interface org.ozoneDB.collections.OzoneCollection
_org_ozoneDB_internalIterator, add, addAll, clear, getClientCollection, remove, removeAll, retainAll
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, size, subList, toArray, toArray
 

Method Detail

_org_ozoneDB_checkMod

public void _org_ozoneDB_checkMod()
This method checks the two modCount fields to ensure that there has not been a concurrent modification, returning if all is okay.

Throws:
java.util.ConcurrentModificationException - if the backing list has been modified externally to this sublist

_org_ozoneDB_checkBoundsInclusive

public void _org_ozoneDB_checkBoundsInclusive(int index)
This method checks that a value is between 0 and size (inclusive). If it is not, an exception is thrown.

Parameters:
index - the value to check
Throws:
java.lang.IndexOutOfBoundsException - if the value is out of range

_org_ozoneDB_checkBoundsExclusive

public void _org_ozoneDB_checkBoundsExclusive(int index)
This method checks that a value is between 0 (inclusive) and size (exclusive). If it is not, an exception is thrown.

Parameters:
index - the value to check
Throws:
java.lang.IndexOutOfBoundsException - if the value is out of range

_org_ozoneDB_getOffset

public int _org_ozoneDB_getOffset()
Returns the offset of this sublist relative to the backing list.

Returns:
offset into backinglist

_org_ozoneDB_incSize

public void _org_ozoneDB_incSize(int amount)
Called by an iterator when it removes an item from this sublist or inserts an item.


_org_ozoneDB_syncModCountWithBackingList

public void _org_ozoneDB_syncModCountWithBackingList()


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.