Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo.server
Class SparseArray

java.lang.Object
  extended byoracle.jbo.server.SparseArray

public class SparseArray
extends java.lang.Object

The SparseArray represents Data from the datastore along with a flag whether data exists in a particular index into the array or not. This Array is designed for arrays that have small numbers of elements with a medium (200-400) spread on the indices. This array doesn't shrink the storage as tail-elements are removed because it assumes that the spread isn't very large.

Only ready only access is allowed to data within this class-instance.


Method Summary
 java.lang.Object get(int index)
          Get the value at the specified index.
 boolean isEmpty()
           
 boolean isPopulated(int index)
          Is the slot populated.
 java.lang.String toString()
          Default call, return at most ten entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

get

public java.lang.Object get(int index)
Get the value at the specified index.

Returns:
value at given index

isPopulated

public boolean isPopulated(int index)
Is the slot populated.

Returns:
True if there is a value at the given index.

toString

public java.lang.String toString()
Default call, return at most ten entries.


isEmpty

public boolean isEmpty()

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

 

Copyright © 1997, 2004, Oracle. All rights reserved.