Package com.alibaba.graphscope.utils
Class AtomicIntegerArrayWrapper
- java.lang.Object
-
- com.alibaba.graphscope.utils.AtomicIntegerArrayWrapper
-
public class AtomicIntegerArrayWrapper extends Object
-
-
Constructor Summary
Constructors Constructor Description AtomicIntegerArrayWrapper(int s)
AtomicIntegerArrayWrapper(int s, int defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
compareAndSet(int ind, int newValue)
void
compareAndSetMin(int ind, int newValue)
void
compareAndSetMin(long ind, int newValue)
void
compareAndSetMin(Vertex<Long> vertex, int newValue)
int
get(int ind)
int
get(long ind)
int
get(Vertex<Long> vertex)
int
getSize()
void
set(int newValue)
void
set(int ind, int newValue)
void
set(long ind, int newValue)
void
set(Vertex<Long> vertex, int newValue)
-
-
-
Method Detail
-
get
public int get(int ind)
-
get
public int get(long ind)
-
set
public void set(int ind, int newValue)
-
set
public void set(long ind, int newValue)
-
set
public void set(int newValue)
-
compareAndSetMin
public void compareAndSetMin(int ind, int newValue)
-
compareAndSetMin
public void compareAndSetMin(long ind, int newValue)
-
compareAndSet
public void compareAndSet(int ind, int newValue)
-
getSize
public int getSize()
-
clear
public void clear()
-
-