| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| pack-priv static class | |
| public static class | |
| private static class | |
| public class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| protected int | |
| public static final int | |
| private volatile boolean | |
| private static final RubyArray. | |
| protected int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final boolean | |
| protected IRubyObject[] |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| public | |
| private | RubyArray(Ruby runtime, RubyClass metaClass, IRubyObject[] vals, int begin, int length, boolean objectSpace)
|
| public | |
| private | |
| protected | |
| private | |
| private | |
| protected | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be appended to this list element)Implements java. Appends the specified element to the end of this list (optional operation). |
| public boolean | |
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this list c)Implements java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<E> collection containing elements to be added to this list c)Implements java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public IRubyObject | aref(IRubyObject[] args)
Deprecated
since 9.4. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| private static void | |
| public static RubyArray | |
| public static RubyArray | |
| public IRubyObject | aset(IRubyObject[] args)
Deprecated
since 9.4-. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: ""
Deprecated
Use
RubyArray#aset(ThreadContext, IRubyObject, IRubyObject, IRubyObject) instead.
|
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private int | |
| public IRubyObject | checkArrayType()
Overrides org. Implements org. rb_check_array_type Returns the result of trying to convert this object to an Array with "to_ary". |
| protected static final void | |
| public static final int | |
| private int | |
| public void | clear()
Implements java. Removes all of the elements from this list (optional operation). |
| private void | |
| private IRubyObject | |
| public RubyArray | |
| public IRubyObject | |
| public RubyArray | Returns: an array of the filtered or unfiltered resultsthe current context context, Block a block for filtering or NULL_BLOCK block)Collect the contents of this array after filtering through block, or return a new equivalent array if the block is not given (!isGiven()). |
| public RubyArray | |
| public RubyEnumerator | Returns: an enumerator that will filter resultsthe current context context)Produce a new enumerator that will filter the contents of this array using |
| private static void | combinate(ThreadContext context, int len, int n, int[] stack, RubyArray<T extends IRubyObject> values, Block block)
|
| public IRubyObject | |
| private static IRubyObject | combinationSize(ThreadContext context, RubyArray<T extends IRubyObject> self, IRubyObject[] args)
A combination size method suitable for method reference implementation of SizeFn |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| protected static int | |
| protected static int | |
| public RubyArray | |
| private void | |
| public RubyArray | |
| public RubyArray | |
| protected final void | |
| private static RuntimeException | |
| public boolean | contains(Object
element whose presence in this list is to be tested element)Implements java. Returns |
| public boolean | containsAll(Collection<E>
collection to be checked for containment in this list c)Implements java. Returns |
| public RubyArray | convertToArray()
Overrides org. Implements org. Tries to convert this object to a Ruby Array using the "to_ary" method. |
| public void | |
| public void | copyInto(ThreadContext context, IRubyObject[] target, int start)
Copy the values contained in this array into the target array at the specified offset. |
| public void | |
| public void | copyInto(ThreadContext context, IRubyObject[] target, int start, int len)
Copy the specified number of values contained in this array into the target array at the specified offset. |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private static IRubyObject | cycleSize(ThreadContext context, RubyArray<T extends IRubyObject> self, IRubyObject[] args)
A cycle size method suitable for lambda method reference implementation of |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: A new RubyArray sharing the original backing store.Overrides org. Implements org. Overridden dup for fast-path logic. |
| protected RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private final IRubyObject | |
| public T | |
| public T | |
| public T | |
| public T | |
| public T | |
| public IRubyObject | |
| public IRubyObject | |
| public void | ensureCapacity(int
the desired minimum capacity of the internal array minCapacity)
Deprecated
Increases the capacity of this |
| public final IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | |
| public boolean | equals(Object
the object to be compared for equality with this list other)Overrides org. Implements java. Compares the specified object with this list for equality. |
| public IRubyObject | fetch(ThreadContext context, IRubyObject[] args, Block block)
Deprecated
since 9.4-. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private int | |
| protected IRubyObject | |
| protected IRubyObject | |
| private long | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | first(IRubyObject[] args)
Deprecated
since 9.4-. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| protected boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| public Object | get(int
index of the element to return index)Implements java. Returns the element at the specified position in this list. |
| private int | |
| private IRubyObject | |
| private IRubyObject | |
| private IRubyObject | |
| public Class | getJavaClass()
Overrides org. Implements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public int | |
| public final List | Returns: a read-only copy of this list
Deprecated
since 9.4-. RubyArray implements List, use it directly
|
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| private Long | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. rb_ary_hash |
| private long | |
| public RubyBoolean | |
| public boolean | |
| public boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public int | indexOf(Object
element to search for element)Implements java. Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public IRubyObject | initialize(ThreadContext context, IRubyObject[] args, Block block)
Deprecated
since 9.4-. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original orig)Overrides org. rb_ary_initialize_copy |
| protected IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. rb_ary_inspect |
| protected IRubyObject | |
| protected IRubyObject | |
| protected IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| private static boolean | |
| private static boolean | |
| public boolean | |
| public Iterator | iterator()
Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyString | |
| protected int | |
| public IRubyObject | |
| public IRubyObject | last(IRubyObject[] args)
Deprecated
since 9.4-. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public int | lastIndexOf(Object
element to search for element)Implements java. Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public RubyFixnum | |
| public RubyFixnum | |
| public ListIterator | listIterator()
Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| private RubyHash | |
| private RubyHash | |
| private RubyHash | |
| private RubyHash | |
| protected RubyArray | |
| private RubyArray | |
| private final RubyArray | |
| private RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public static void | marshalTo(RubyArray<T extends IRubyObject> array, MarshalStream output)
Deprecated
for removal since 10.0.
|
| public static void | marshalTo(ThreadContext context, RubyArray<T extends IRubyObject> array, MarshalStream output)
Deprecated
for removal since 10.0.
|
| public static void | marshalTo(ThreadContext context, RubyOutputStream out, RubyArray<T extends IRubyObject> array, MarshalDumper output)
|
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| protected void | |
| protected void | |
| protected final void | |
| protected final void | |
| public static final RubyArray | newArray(final Ruby runtime, final long len)
Deprecated
since 10.0. Use
Create#allocArray(ThreadContext, int) instead
Create array with specific allocated size |
| public static final RubyArray | |
| public static final RubyArray | |
| public static final RubyArray | |
| public static final RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | newArray(Ruby runtime, IRubyObject first, IRubyObject second, IRubyObject third, IRubyObject fourth)
|
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static final RubyArray | |
| public static final RubyArray | |
| public static final RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | Returns: an array referencing the given elementsthe runtime runtime, IRubyObject[] the args args, int start index start, int number of elements length)Construct a new RubyArray given the specified range of elements in the source array. |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | Returns: a RubyArray shaped for the given sizethe current thread context context, int the size size)Construct the most efficient array shape for the given size. |
| pack-priv static RubyArray | |
| pack-priv static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public static RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_cmp(ThreadContext context, IRubyObject obj)
Overrides org. rb_ary_cmp |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject obj)
Overrides org. Implements org. rb_ary_equal |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static final int | optimizedCmp(ThreadContext context, IRubyObject a, IRubyObject b, int token, CachingCallSite op_cmp, CallSite op_gt, CallSite op_lt)
|
| public RubyString | |
| public RubyString | |
| private static RubyArray | |
| private static RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private static IRubyObject | permutationSize(ThreadContext context, RubyArray<T extends IRubyObject> self, IRubyObject[] args)
A permutation size method suitable for lambda method reference implementation of |
| private static void | permute(ThreadContext context, int n, int r, int[] p, boolean[] used, RubyArray<T extends IRubyObject> values, Block block)
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| private static long | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static void | rcombinate(ThreadContext context, int n, int r, int[] p, RubyArray<T extends IRubyObject> values, Block block)
|
| private void | |
| private void | recursiveJoin(final ThreadContext context, final IRubyObject outValue, final RubyString sep, final RubyString result, final RubyArray<T extends IRubyObject> ary, final boolean[] first)
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public final IRubyObject | |
| public boolean | remove(Object
element to be removed from this list, if present element)Implements java. Removes the first occurrence of the specified element from this list, if it is present (optional operation). |
| public Object | remove(int
the index of the element to be removed index)Implements java. Removes the element at the specified position in this list (optional operation). |
| public boolean | removeAll(Collection<E>
collection containing elements to be removed from this list c)Implements java. Removes from this list all of its elements that are contained in the specified collection (optional operation). |
| public IRubyObject | |
| public IRubyObject | |
| private static IRubyObject | repeatedCombinationSize(ThreadContext context, RubyArray<T extends IRubyObject> self, IRubyObject[] args)
A repeated combination size method suitable for method reference implementation of SizeFn |
| private static IRubyObject | repeatedPermutationSize(ThreadContext context, RubyArray<T extends IRubyObject> self, IRubyObject[] args)
A repeated permutation size method suitable for lambda method reference implementation of |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| public boolean | retainAll(Collection<E>
collection containing elements to be retained in this list c)Implements java. Retains only the elements in this list that are contained in the specified collection (optional operation). |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static int | |
| private static void | rpermute(ThreadContext context, int n, int r, int[] p, RubyArray<T extends IRubyObject> values, Block block)
|
| public Stream | |
| private static void | safeArrayCopy(ThreadContext context, IRubyObject[] source, int sourceStart, IRubyObject[] target, int targetStart, int length)
|
| private static IRubyObject | |
| private static IRubyObject | safeArrayRefCondSet(ThreadContext context, IRubyObject[] values, int i, boolean doSet, IRubyObject value)
|
| private static IRubyObject | |
| protected static IRubyObject | |
| protected RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | sampleCommon(ThreadContext context, IRubyObject randgen)
Common sample logic when no sample size was specified. |
| private IRubyObject | sampleCommon(ThreadContext context, IRubyObject sample, IRubyObject randgen)
Common sample logic when a sample size was specified. |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| protected static IRubyObject | size(ThreadContext context, RubyArray<T extends IRubyObject> self, IRubyObject[] args)
A size method suitable for lambda method reference implementation of |
| public int | |
| public IRubyObject | slice_bang(IRubyObject[] args)
Deprecated
since 9.4-. Use the versions with zero, one, or two args.
Variable arity version for compatibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| protected IRubyObject | |
| protected IRubyObject | |
| private void | |
| private void | splice(ThreadContext context, int beg, int len, final RubyArray<T extends IRubyObject> rplArr, final int rlen)
rb_ary_splice |
| private final void | |
| private void | |
| public IRubyObject | |
| public IRubyObject | Returns: the value setthe current thread context context, long the offset to store the value index, IRubyObject the value to be stored value)Store an element at the specified index or throw if the index is invalid. |
| protected void | |
| private void | |
| private static void | |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Implements java. Returns a view of the portion of this list between the specified
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyString | |
| public Object[] | toArray()
Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public Object[] | toArray(final Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. arg)Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public IRubyObject[] | |
| public IRubyObject[] | Returns: a Java array with exactly the size and contents of this RubyArray's elementsReturn a Java array copy of the elements contained in this Array. |
| public IRubyObject[] | Returns: a Java array with exactly the size and contents of this RubyArray's elements, possibly the actual underlying array.Return a Java array of the elements contained in this array, possibly a new array object. |
| public IRubyObject[] | Returns: The underlying Java array for this RubyArray, or a copy if that array is shared.Return a reference to this RubyArray's underlying Java array, if it is not shared with another RubyArray, or an exact copy of the relevant range otherwise. |
| public RubyArray | |
| public RubyArray | |
| public static IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyArray | |
| public static RubyArray | |
| protected void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| private static void | yieldValues(ThreadContext context, int r, int[] p, int pStart, RubyArray<T extends IRubyObject> values, Block block)
|
| public IRubyObject | |
| private IRubyObject | zipCommon(ThreadContext context, IRubyObject[] args, Block block, RubyArray.
|