private static final class ObjectSpace.ObjectGroup extends java.util.AbstractList<IRubyObject>
| Modifier and Type | Field and Description |
|---|---|
private static int |
MAX_OBJECTS_PER_GROUP |
private int |
nextIndex |
private java.util.concurrent.atomic.AtomicReferenceArray<IRubyObject> |
objects |
| Modifier | Constructor and Description |
|---|---|
private |
ObjectGroup() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IRubyObject obj) |
IRubyObject |
get(int index) |
private boolean |
isFull() |
IRubyObject |
set(int index,
IRubyObject element) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate static final int MAX_OBJECTS_PER_GROUP
private final java.util.concurrent.atomic.AtomicReferenceArray<IRubyObject> objects
private int nextIndex
public boolean add(IRubyObject obj)
add in interface java.util.Collection<IRubyObject>add in interface java.util.List<IRubyObject>add in class java.util.AbstractList<IRubyObject>public IRubyObject get(int index)
get in interface java.util.List<IRubyObject>get in class java.util.AbstractList<IRubyObject>public IRubyObject set(int index, IRubyObject element)
set in interface java.util.List<IRubyObject>set in class java.util.AbstractList<IRubyObject>private boolean isFull()
public int size()
size in interface java.util.Collection<IRubyObject>size in interface java.util.List<IRubyObject>size in class java.util.AbstractCollection<IRubyObject>