Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULTBLOC |
protected int |
size |
protected int |
sizeBloc |
protected boolean |
sorted |
Constructor and Description |
---|
Array() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
add(long v,
boolean testUnicity)
Add a value, with or without checking unicity
|
abstract Object |
clone() |
abstract boolean |
delete(long v)
Delete value v from the array
|
abstract boolean |
delete(long v1,
long v2)
Delete range of values
|
abstract boolean |
deleteBrothers(long me)
Delete 3 others brothers if all present
|
abstract boolean |
equals(Array a)
Equality test
|
abstract int |
find(long v)
Find index of value v, or return negative value (bsearch result)
if it is not present in the array
|
abstract long |
get(int i)
Provide the element i
|
abstract long |
getMem()
Size of the array in bytes
|
int |
getSize()
Size of the array
|
abstract int |
getSizeCompressed()
Return the size of the array in compressed mode
|
abstract boolean |
intersectRange(long vStart,
long vEnd)
Return false if no value in the range [vStart..vEnd]
is present in the array
|
boolean |
isSorted()
Return true if the array is ascending sorted
|
Iterator<Long> |
iterator()
Provide an iterator on the array
|
abstract void |
set(int i,
long v)
set the element i
|
int |
setSize(int size)
set the size of the array
|
abstract void |
sort()
Sort the array (if required)
|
abstract void |
trim()
Trim the array in order to free the not required memory
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final int DEFAULTBLOC
protected int size
protected boolean sorted
protected int sizeBloc
public boolean isSorted()
public int getSize()
public int setSize(int size)
public abstract long get(int i)
public abstract void set(int i, long v)
public abstract boolean add(long v, boolean testUnicity)
public abstract boolean delete(long v)
public abstract boolean delete(long v1, long v2)
public abstract boolean deleteBrothers(long me)
public abstract void sort()
public abstract int find(long v)
public abstract boolean intersectRange(long vStart, long vEnd)
public abstract long getMem()
public abstract int getSizeCompressed()
public abstract void trim()
public abstract boolean equals(Array a)