Skip navigation links


com.essbase.eas.essbase.defs
Class DefaultListAccess<T>

java.lang.Object
  extended by com.essbase.eas.essbase.defs.DefaultListAccess<T>


public class DefaultListAccess<T>
extends java.lang.Object

List management class used by DefaultServer

Version:
1.00, 10/28/2003
Author:
Bill Schleifer
See Also:
DefaultServer

Field Summary
 java.util.ArrayList<T> theList
           

 

Constructor Summary
DefaultListAccess()
           

 

Method Summary
 boolean add(T o)
           
 int checkListAccess()
           
 void decListAccess()
           
 void flushListAccess()
          flushListAccess() sets the access counter to 0 and nulls both theList and SRList
 T get(int index)
           
 java.util.ArrayList<T> getListRef()
          getListRef() leaves the list pointer non-null and ineligible for collection getListRef() also increments the access counter if getListRef() does not return null the user MUST call decListAccess() when finished with the reference
 void incListAccess()
           
 int indexOf(java.lang.Object o)
           
 java.util.Iterator<T> iterator()
           
 boolean remove(java.lang.Object o)
           
 void resetListAccess()
          resetListAccess() sets the access counter to 0 and nulls theList only.
 java.util.ArrayList<T> setTheList(java.util.ArrayList<T> aList)
          setTheList() leaves the list pointer non-null and ineligible for collection setTheList() also increments the access counter if setTheList() does not retuen null the user MUST call decListAccess() when finished with the reference
 int size()
           
 java.lang.Object[] toArray()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

theList

public java.util.ArrayList<T> theList

Constructor Detail

DefaultListAccess

public DefaultListAccess()

Method Detail

setTheList

public java.util.ArrayList<T> setTheList(java.util.ArrayList<T> aList)
setTheList() leaves the list pointer non-null and ineligible for collection setTheList() also increments the access counter if setTheList() does not retuen null the user MUST call decListAccess() when finished with the reference
Returns:

flushListAccess

public void flushListAccess()
flushListAccess() sets the access counter to 0 and nulls both theList and SRList

resetListAccess

public void resetListAccess()
resetListAccess() sets the access counter to 0 and nulls theList only. SRList is left intact

incListAccess

public void incListAccess()

decListAccess

public void decListAccess()

checkListAccess

public int checkListAccess()

getListRef

public java.util.ArrayList<T> getListRef()
getListRef() leaves the list pointer non-null and ineligible for collection getListRef() also increments the access counter if getListRef() does not return null the user MUST call decListAccess() when finished with the reference
Returns:

toArray

public java.lang.Object[] toArray()

add

public boolean add(T o)

get

public T get(int index)

remove

public boolean remove(java.lang.Object o)

indexOf

public int indexOf(java.lang.Object o)

iterator

public java.util.Iterator<T> iterator()

size

public int size()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.