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 voidclear()voidcompareAndSet(int ind, int newValue)voidcompareAndSetMin(int ind, int newValue)voidcompareAndSetMin(long ind, int newValue)voidcompareAndSetMin(Vertex<Long> vertex, int newValue)intget(int ind)intget(long ind)intget(Vertex<Long> vertex)intgetSize()voidset(int newValue)voidset(int ind, int newValue)voidset(long ind, int newValue)voidset(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()
-
-