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