T - public final class BigArrayList<T> extends Object implements Iterable<T>
Simple implementation of a list that can have more than Integer.MAX_VALUE values.
Works as a normal ArrayList until the size gets bigger than Integer.MAX_VALUE.
After that, it works as a List of ArrayLists, so get(long) will be a little bit more expensive.
For now, only add(Object), get(long), and size() are supported.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_SIZE
The default max size a
List can have |
| Constructor and Description |
|---|
BigArrayList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element)
Appends the specified element to the end of this list.
|
void |
clear() |
static <T> BigArrayList<T> |
create() |
static <T> BigArrayList<T> |
create(int maxSize) |
T |
get(long index)
Returns the element at the specified position in this list.
|
Iterator<T> |
iterator() |
T |
set(long theIndex,
T theElem)
Set the value of the index
|
long |
size()
Returns the number of elements in this list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final int DEFAULT_MAX_SIZE
List can havepublic static <T> BigArrayList<T> create()
public static <T> BigArrayList<T> create(int maxSize)
public T get(long index)
index - public T set(long theIndex, T theElem)
theIndex - the indextheElem - the element to set at the indexpublic boolean add(T element)
element - public long size()
public void clear()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.