|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.sigmadynamics.util.SDArray
public abstract class SDArray
This abstract class serves as a base for specialized SDArrayType classes.
Field Summary | |
---|---|
protected static int |
ALLOC_UNIT |
protected static int |
DEFAULT_INITIAL_SIZE |
protected int |
size |
Constructor Summary | |
---|---|
SDArray() Default constructor. |
Method Summary | |
---|---|
abstract int |
capacity() Returns buffer capacity. |
void |
clear() Deletes all elements from the array. |
protected abstract void |
ensureCapacity(int capacity) Grows the internal buffer as needed to accomodate the specified number of elements. |
boolean |
isEmpty() Returns true if the array does not contain any elements, or false otherwise. |
protected void |
rangeCheck(int fromIndex, int toIndex) Checks if fromIndex and toIndex are in range, and throws an exception if any of them is not. |
abstract void |
setSize(int size) Adds or deletes elements at the end of the array. |
int |
size() Returns the number of elements in the array. |
abstract void |
trimToSize() Removes any excess buffer capacity above the actual number of elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int ALLOC_UNIT
protected static final int DEFAULT_INITIAL_SIZE
protected int size
Constructor Detail |
---|
public SDArray()
Method Detail |
---|
public final int size()
public final boolean isEmpty()
true
if the array does not contain any elements, or false
otherwise.true
or false
depending on whether the array is empty or not.public abstract int capacity()
public abstract void setSize(int size)
size
- new number or elements.public void clear()
public abstract void trimToSize()
protected abstract void ensureCapacity(int capacity)
capacity
- number of elements to accomodate.protected void rangeCheck(int fromIndex, int toIndex)
fromIndex
and toIndex
are in range, and throws an exception if any of them is not. This method is not a part of public API and should not be used by Inline Service code.
|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |