public class AtomicArrayImpl<E> extends Object implements AtomicArray<E>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
Constructor and Description |
---|
AtomicArrayImpl() |
AtomicArrayImpl(int size) |
Modifier and Type | Method and Description |
---|---|
void |
empty() |
E |
get(int index) |
boolean |
isEmpty() |
void |
restore_state(InputObjectState os) |
void |
save_state(OutputObjectState os) |
void |
set(int index,
E val) |
int |
size() |
public static final int DEFAULT_SIZE
public AtomicArrayImpl()
public AtomicArrayImpl(int size)
public void empty()
empty
in interface AtomicArray<E>
public E get(int index)
get
in interface AtomicArray<E>
public boolean isEmpty()
isEmpty
in interface AtomicArray<E>
public void set(int index, E val)
set
in interface AtomicArray<E>
public int size()
size
in interface AtomicArray<E>
public void save_state(OutputObjectState os) throws IOException
IOException
public void restore_state(InputObjectState os) throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.