public abstract class ArrayBase<ArrayType,BaseType> extends Object implements Iterable<BaseType>
Modifier and Type | Field and Description |
---|---|
protected int |
actualSize |
protected int |
allocated |
protected int |
maximumGrowth |
protected Class |
type |
Constructor and Description |
---|
ArrayBase(int size,
Class type) |
ArrayBase(int size,
int growth,
Class type) |
Modifier and Type | Method and Description |
---|---|
ArrayType |
buildArray() |
void |
clear() |
void |
ensureCapacity(int required) |
protected int |
getAddIndex() |
protected abstract ArrayType |
getArray() |
Iterator<BaseType> |
iterator() |
protected void |
makeInsertSpace(int index) |
void |
remove(int index) |
protected abstract void |
setArray(ArrayType array) |
void |
setSize(int count) |
int |
size() |
protected abstract BaseType |
valueOf(int index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected Class type
protected int actualSize
protected int allocated
protected int maximumGrowth
public ArrayBase(int size, int growth, Class type)
public ArrayBase(int size, Class type)
protected abstract ArrayType getArray()
protected abstract void setArray(ArrayType array)
protected abstract BaseType valueOf(int index)
public void ensureCapacity(int required)
protected int getAddIndex()
protected void makeInsertSpace(int index)
public void remove(int index)
public void clear()
public int size()
public void setSize(int count)
public ArrayType buildArray()
Copyright © 2015–2021 Fiji. All rights reserved.