gov.nih.nlm.nls.gspell
Class IntList

java.lang.Object
  extended bygov.nih.nlm.nls.gspell.IntList

final class IntList
extends java.lang.Object

IntList is a container for an int[] that has been created, but where not all the cells may have been filled.

Notes:


Constructor Summary
(package private) IntList()
          This is a constructor for IntList
(package private) IntList(int initSize)
          This is a constructor for IntList
 
Method Summary
(package private)  void add(int pKey, int pVal)
          Method add
(package private)  void fill(int pVal)
          Method fill initializes the list
(package private)  int get(int pKey)
          Method get
(package private)  int length()
          Method length
(package private)  void set(int pKey, int pVal)
          Method set adds or sets the pVal to the pKeyed slot.
(package private)  int[] toIntArray()
          Method toIntArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntList

IntList(int initSize)
This is a constructor for IntList


IntList

IntList()
This is a constructor for IntList

Method Detail

add

void add(int pKey,
         int pVal)
Method add

Parameters:
pKey -
pVal -

fill

void fill(int pVal)
Method fill initializes the list

Parameters:
pVal -

get

int get(int pKey)
Method get

Parameters:
pKey -
Returns:
int

length

int length()
Method length

Returns:
int

toIntArray

int[] toIntArray()
Method toIntArray

Returns:
int[]

set

void set(int pKey,
         int pVal)
Method set adds or sets the pVal to the pKeyed slot. This method is going to assume that if you reference a pKey that is greater than what has been referenced before, that the pKey is going to also be the new length of the array.

Parameters:
pKey -
pVal -


The use and distribution of this material is subject to the terms and conditions included in the file SPECIALIST_NLP_TOOLS_TERMS_AND_CONDITIONS.TXT, located in the root directory of the distribution.