public class OpMapVector extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
m_blocksize
Size of blocks to allocate
|
protected int |
m_lengthPos
Position where size of array is kept
|
protected int[] |
m_map
Array of ints
|
protected int |
m_mapSize
Size of array
|
Constructor and Description |
---|
OpMapVector(int blocksize,
int increaseSize,
int lengthPos)
Construct a OpMapVector, using the given block size.
|
Modifier and Type | Method and Description |
---|---|
int |
elementAt(int i)
Get the nth element.
|
void |
setElementAt(int value,
int index)
Sets the component at the specified index of this vector to be the
specified object.
|
void |
setToSize(int size) |
protected int m_blocksize
protected int[] m_map
protected int m_lengthPos
protected int m_mapSize
public OpMapVector(int blocksize, int increaseSize, int lengthPos)
blocksize
- Size of block to allocatepublic final int elementAt(int i)
i
- index of object to getpublic final void setElementAt(int value, int index)
value
- object to setindex
- Index of where to set the objectpublic final void setToSize(int size)
Copyright © 2020 JBoss by Red Hat. All rights reserved.