INLongRep.DefaultRep, INLongRep.EmptyRep, INLongRep.SparseRep| Constructor and Description |
|---|
EmptyRep(int minLength,
boolean allowSparseRep) |
| Modifier and Type | Method and Description |
|---|---|
INLongRep |
clear(IN parent,
INLongRep.EmptyRep emptyRep) |
INLongRep |
compact(IN parent,
INLongRep.EmptyRep emptyRep) |
INLongRep |
copy(int from,
int to,
int n,
IN parent) |
long |
get(int idx) |
long |
getMemorySize()
An EMPTY_REP has no JE cache memory overhead because there is only
one global instance.
|
boolean |
isEmpty() |
INLongRep |
resize(int capacity) |
INLongRep |
set(int idx,
long val,
IN parent)
When adding to the cache the EMPTY_REP is mutated into a
DefaultRep.
|
public INLongRep set(int idx, long val, IN parent)
public INLongRep compact(IN parent, INLongRep.EmptyRep emptyRep)
public INLongRep clear(IN parent, INLongRep.EmptyRep emptyRep)
public long getMemorySize()
getMemorySize in class INLongRepCopyright © 2024. All rights reserved.