Package org.jruby.runtime
Class ObjectSpace.ObjectGroup
- All Implemented Interfaces:
Iterable<IRubyObject>,Collection<IRubyObject>,List<IRubyObject>
- Enclosing class:
- ObjectSpace
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate intprivate final AtomicReferenceArray<IRubyObject>Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(IRubyObject obj) get(int index) private booleanisFull()set(int index, IRubyObject element) intsize()Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
MAX_OBJECTS_PER_GROUP
private static final int MAX_OBJECTS_PER_GROUP- See Also:
-
objects
-
nextIndex
private int nextIndex
-
-
Constructor Details
-
ObjectGroup
private ObjectGroup()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<IRubyObject>- Specified by:
addin interfaceList<IRubyObject>- Overrides:
addin classAbstractList<IRubyObject>
-
get
- Specified by:
getin interfaceList<IRubyObject>- Specified by:
getin classAbstractList<IRubyObject>
-
set
- Specified by:
setin interfaceList<IRubyObject>- Overrides:
setin classAbstractList<IRubyObject>
-
isFull
private boolean isFull() -
size
public int size()- Specified by:
sizein interfaceCollection<IRubyObject>- Specified by:
sizein interfaceList<IRubyObject>- Specified by:
sizein classAbstractCollection<IRubyObject>
-