Class HugeSparseLongArray.Builder
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.paged.HugeSparseLongArray.Builder
-
- Enclosing class:
- HugeSparseLongArray
public static final class HugeSparseLongArray.Builder extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HugeSparseLongArray
build()
static HugeSparseLongArray.Builder
create(long size, long defaultValue, AllocationTracker tracker)
static HugeSparseLongArray.Builder
create(long size, AllocationTracker tracker)
void
set(long index, long value)
boolean
setIfAbsent(long index, long value)
-
-
-
Method Detail
-
create
public static HugeSparseLongArray.Builder create(long size, AllocationTracker tracker)
-
create
public static HugeSparseLongArray.Builder create(long size, long defaultValue, AllocationTracker tracker)
-
set
public void set(long index, long value)
-
setIfAbsent
public boolean setIfAbsent(long index, long value)
- Returns:
- true iff the value was absent and was added, false if there already was a value at this position.
-
build
public HugeSparseLongArray build()
-
-