public abstract class ElementList extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CAP
Initial hash capacity.
|
protected double |
factor
Resize factor for extending the arrays.
|
protected int |
size
Number of elements.
|
Modifier | Constructor and Description |
---|---|
protected |
ElementList()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
empty()
Tests is the container has no elements.
|
protected int |
newSize()
Returns a new array size.
|
protected int |
newSize(int min)
Returns a new array size that is larger than or equal to the specified
size.
|
void |
reset()
Resets the array size.
|
int |
size()
Returns the number of elements.
|
void |
size(int s)
Sets the number of elements to the specified value.
|
public static final int CAP
protected double factor
protected int size
protected final int newSize()
protected final int newSize(int min)
min
- minimum sizepublic final int size()
public final void size(int s)
s
- number of elementspublic final boolean empty()
public final void reset()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.