public class RubyArray<T extends IRubyObject> extends RubyObject implements java.util.List, java.util.RandomAccess
Modifier and Type | Class and Description |
---|---|
static interface |
RubyArray.ArgumentVisitor |
static class |
RubyArray.DefaultComparator |
class |
RubyArray.RubyArrayConversionIterator |
RubyObject.Data
RubyBasicObject.Finalizer
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_DEFAULT_SIZE |
protected int |
begin |
static int |
DEFAULT_INSPECT_STR_SIZE |
protected int |
realLength |
protected IRubyObject[] |
values |
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUST_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStamp
NULL_ARRAY
Modifier | Constructor and Description |
---|---|
|
RubyArray(Ruby runtime,
int length) |
protected |
RubyArray(Ruby runtime,
RubyClass klass) |
protected |
RubyArray(Ruby runtime,
RubyClass klass,
boolean objectSpace) |
|
RubyArray(Ruby runtime,
RubyClass klass,
IRubyObject[] vals) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object element) |
boolean |
add(java.lang.Object element) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
java.util.Collection c) |
IRubyObject |
all_p(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
any_p(ThreadContext context,
IRubyObject[] args,
Block block) |
RubyArray |
append(IRubyObject item)
rb_ary_push - specialized rb_ary_store
|
IRubyObject |
aref(IRubyObject arg0)
rb_ary_aref
|
IRubyObject |
aref(IRubyObject[] args)
Deprecated.
Use the versions with zero, one, or two args.
|
IRubyObject |
aref(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
aref19(IRubyObject arg0)
Deprecated.
|
IRubyObject |
aref19(IRubyObject arg0,
IRubyObject arg1)
Deprecated.
|
RubyArray |
aryAppend(RubyArray y) |
RubyArray |
aryDup()
rb_ary_dup
|
RubyArray |
aryDup19()
Deprecated.
|
static RubyArray |
aryToAry(IRubyObject obj)
Deprecated.
|
static RubyArray |
aryToAry(ThreadContext context,
IRubyObject obj)
rb_ary_to_ary
|
IRubyObject |
aset(IRubyObject[] args)
Deprecated.
Use the versions with zero, one, or two args.
|
IRubyObject |
aset(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
aset(IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
rb_ary_aset
|
IRubyObject |
aset19(IRubyObject arg0,
IRubyObject arg1)
Deprecated.
|
IRubyObject |
aset19(IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
Deprecated.
|
IRubyObject |
assoc(ThreadContext context,
IRubyObject key)
rb_ary_assoc
|
IRubyObject |
at(IRubyObject pos)
rb_ary_at
|
IRubyObject |
bsearch_index(ThreadContext context,
Block block) |
IRubyObject |
bsearch(ThreadContext context,
Block block) |
IRubyObject |
checkArrayType()
rb_check_array_type
Returns the result of trying to convert this object to an Array with "to_ary".
|
protected static void |
checkLength(Ruby runtime,
long length) |
IRubyObject |
choice(ThreadContext context)
Deprecated.
|
void |
clear() |
IRubyObject |
collect_bang(ThreadContext context,
Block block)
rb_ary_collect_bang
|
RubyArray |
collect(ThreadContext context,
Block block)
rb_ary_collect
|
IRubyObject |
collect19(ThreadContext context,
Block block) |
RubyArray |
collectBang(ThreadContext context,
Block block)
rb_ary_collect_bang
|
IRubyObject |
combination(ThreadContext context,
IRubyObject num,
Block block)
rb_ary_combination
|
IRubyObject |
compact_bang()
rb_ary_compact_bang
|
IRubyObject |
compact()
rb_ary_compact
|
IRubyObject |
compact19()
Deprecated.
|
RubyBoolean |
compare(ThreadContext context,
CallSite site,
IRubyObject other) |
protected static int |
compareFixnums(RubyFixnum o1,
RubyFixnum o2) |
protected static int |
compareOthers(ThreadContext context,
IRubyObject o1,
IRubyObject o2) |
IRubyObject |
compatc19()
Deprecated.
|
RubyArray |
concat(IRubyObject obj) |
RubyArray |
concat(ThreadContext context,
IRubyObject obj)
rb_ary_concat
|
RubyArray |
concat(ThreadContext context,
IRubyObject[] objs)
rb_ary_concat_multi
|
RubyArray |
concat19(IRubyObject obj)
Deprecated.
|
protected void |
concurrentModification() |
boolean |
contains(java.lang.Object element) |
boolean |
containsAll(java.util.Collection c) |
RubyArray |
convertToArray()
Tries to convert this object to a Ruby Array using the "to_ary" method.
|
void |
copyInto(IRubyObject[] target,
int start)
Copy the values contained in this array into the target array at the specified offset.
|
void |
copyInto(IRubyObject[] target,
int start,
int len)
Copy the specified number of values contained in this array into the target array at the specified offset.
|
IRubyObject |
count(ThreadContext context,
Block block) |
IRubyObject |
count(ThreadContext context,
IRubyObject obj,
Block block) |
static IRubyObject |
create(IRubyObject klass,
IRubyObject[] args,
Block block)
rb_ary_s_create
|
static RubyClass |
createArrayClass(Ruby runtime) |
IRubyObject |
cycle(ThreadContext context,
Block block)
rb_ary_cycle
|
IRubyObject |
cycle(ThreadContext context,
IRubyObject arg,
Block block)
rb_ary_cycle
|
IRubyObject |
delete_at(int pos)
rb_ary_delete_at
|
IRubyObject |
delete_at(IRubyObject obj)
rb_ary_delete_at_m
|
IRubyObject |
delete_if(ThreadContext context,
Block block) |
IRubyObject |
delete(ThreadContext context,
IRubyObject item,
Block block)
rb_ary_delete
|
IRubyObject |
deleteIf(ThreadContext context,
Block block)
rb_ary_delete_if
|
IRubyObject |
detectCommon(ThreadContext context,
IRubyObject ifnone,
Block block) |
IRubyObject |
dig(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
drop_while(ThreadContext context,
Block block)
rb_ary_take_while
|
IRubyObject |
drop(ThreadContext context,
IRubyObject n)
rb_ary_take
|
IRubyObject |
dup()
Overridden dup for fast-path logic.
|
protected RubyArray |
dupImpl(RubyClass metaClass) |
IRubyObject |
each_index(ThreadContext context,
Block block) |
IRubyObject |
each_slice(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
each(ThreadContext context,
Block block)
mri: rb_ary_each
|
IRubyObject |
eachIndex(ThreadContext context,
Block block)
rb_ary_each_index
|
IRubyObject |
eachSlice(ThreadContext context,
int size,
Block block) |
T |
eltInternal(int offset) |
T |
eltInternalSet(int offset,
T item) |
T |
eltOk(long offset) |
T |
eltSetOk(int offset,
T value) |
T |
eltSetOk(long offset,
T value) |
IRubyObject |
empty_p()
rb_ary_empty_p
|
void |
ensureCapacity(int minCapacity)
Deprecated.
|
IRubyObject |
entry(int offset) |
IRubyObject |
entry(long offset)
rb_ary_entry
|
protected RubyEnumerator.SizeFn |
enumLengthFn() |
IRubyObject |
eql(ThreadContext context,
IRubyObject obj)
rb_ary_eql
|
boolean |
equals(java.lang.Object other)
This override does not do a "checked" dispatch.
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated.
Use the versions with zero, one, or two args.
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject arg0,
Block block)
rb_ary_fetch
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_ary_fetch
|
IRubyObject |
fill(ThreadContext context,
Block block) |
IRubyObject |
fill(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
fill(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
IRubyObject |
fill(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
Block block) |
protected IRubyObject |
fillCommon(ThreadContext context,
int beg,
long len,
Block block) |
protected IRubyObject |
fillCommon(ThreadContext context,
int beg,
long len,
IRubyObject item) |
IRubyObject |
find_index(ThreadContext context,
Block block) |
IRubyObject |
find_index(ThreadContext context,
IRubyObject cond) |
IRubyObject |
find(ThreadContext context,
IRubyObject ifnone,
Block block) |
IRubyObject |
first()
rb_ary_first
|
IRubyObject |
first(IRubyObject arg0)
rb_ary_first
|
IRubyObject |
first(IRubyObject[] args)
Deprecated.
Use the versions with zero, one, or two args.
|
IRubyObject |
flatten_bang(ThreadContext context) |
IRubyObject |
flatten_bang(ThreadContext context,
IRubyObject arg) |
IRubyObject |
flatten_bang19(ThreadContext context)
Deprecated.
|
IRubyObject |
flatten_bang19(ThreadContext context,
IRubyObject arg)
Deprecated.
|
IRubyObject |
flatten(ThreadContext context) |
protected boolean |
flatten(ThreadContext context,
int level,
RubyArray result) |
IRubyObject |
flatten(ThreadContext context,
IRubyObject arg) |
IRubyObject |
flatten19(ThreadContext context)
Deprecated.
|
IRubyObject |
flatten19(ThreadContext context,
IRubyObject arg)
Deprecated.
|
RubyBoolean |
frozen_p(ThreadContext context)
rb_ary_frozen_p
|
java.lang.Object |
get(int index) |
java.lang.Class |
getJavaClass()
Will return the Java interface that most closely can represent
this object, when working through Java integration translations.
|
int |
getLength() |
java.util.List<IRubyObject> |
getList()
Deprecated.
RubyArray implements List, use it directly
|
ClassIndex |
getNativeClassIndex()
This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
RubyFixnum |
hash()
rb_obj_id
Will return the hash code of this object.
|
RubyFixnum |
hash(ThreadContext context)
rb_ary_hash
|
RubyFixnum |
hash19(ThreadContext context)
Deprecated.
|
RubyBoolean |
include_p(ThreadContext context,
IRubyObject item)
rb_ary_includes
|
boolean |
includes(ThreadContext context,
IRubyObject item) |
IRubyObject |
index(ThreadContext context,
Block block) |
IRubyObject |
index(ThreadContext context,
IRubyObject obj)
rb_ary_index
|
IRubyObject |
index(ThreadContext context,
IRubyObject obj,
Block unused) |
IRubyObject |
indexes(IRubyObject[] args)
rb_ary_indexes
|
int |
indexOf(java.lang.Object element) |
IRubyObject |
initialize_copy(IRubyObject orig)
rb_ary_initialize_copy
|
IRubyObject |
initialize(ThreadContext context,
Block block)
rb_ary_initialize
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated.
Use the versions with zero, one, or two args.
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject arg0,
Block block)
rb_ary_initialize
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_ary_initialize
|
protected IRubyObject |
initializeCommon(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
insert() |
IRubyObject |
insert(IRubyObject arg)
rb_ary_insert
|
IRubyObject |
insert(IRubyObject[] args) |
IRubyObject |
insert(IRubyObject arg1,
IRubyObject arg2) |
IRubyObject |
insert19(IRubyObject arg)
Deprecated.
|
IRubyObject |
insert19(IRubyObject[] args)
Deprecated.
|
IRubyObject |
insert19(IRubyObject arg1,
IRubyObject arg2)
Deprecated.
|
IRubyObject |
inspect()
rb_obj_inspect
call-seq:
obj.inspect => string
Returns a string containing a human-readable representation of
obj.
|
RubyString |
inspect(ThreadContext context)
rb_ary_inspect
|
protected IRubyObject |
inspectAry(ThreadContext context)
inspect_ary
|
protected IRubyObject |
internalRotate(ThreadContext context,
int cnt) |
protected IRubyObject |
internalRotateBang(ThreadContext context,
int cnt) |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
IRubyObject |
join(ThreadContext context) |
IRubyObject |
join(ThreadContext context,
IRubyObject sep)
rb_ary_join
|
IRubyObject |
join19(ThreadContext context) |
IRubyObject |
join19(ThreadContext context,
IRubyObject sep)
rb_ary_join
|
protected RubyString |
joinStrings(RubyString sep,
int max,
RubyString result) |
IRubyObject |
keep_if(ThreadContext context,
Block block) |
IRubyObject |
last()
rb_ary_last
|
IRubyObject |
last(IRubyObject arg0)
rb_ary_last
|
IRubyObject |
last(IRubyObject[] args)
Deprecated.
Use the versions with zero, one, or two args.
|
int |
lastIndexOf(java.lang.Object element) |
RubyFixnum |
length()
rb_ary_length
|
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
IRubyObject |
map_bang(ThreadContext context,
Block block)
rb_ary_collect_bang
|
IRubyObject |
map19(ThreadContext context,
Block block) |
static void |
marshalTo(RubyArray array,
MarshalStream output) |
IRubyObject |
max(ThreadContext context,
Block block) |
IRubyObject |
max(ThreadContext context,
IRubyObject num,
Block block) |
IRubyObject |
min(ThreadContext context,
Block block) |
IRubyObject |
min(ThreadContext context,
IRubyObject num,
Block block) |
protected void |
modify()
rb_ary_modify
|
protected void |
modifyCheck()
rb_ary_modify_check
|
static RubyArray |
newArray(Ruby runtime)
rb_ary_new
|
static RubyArray |
newArray(Ruby runtime,
java.util.Collection<? extends IRubyObject> collection) |
static RubyArray |
newArray(Ruby runtime,
int len) |
static RubyArray |
newArray(Ruby runtime,
IRubyObject obj) |
static RubyArray |
newArray(Ruby runtime,
IRubyObject[] args)
rb_ary_new4, rb_ary_new3
|
static RubyArray |
newArray(Ruby runtime,
IRubyObject car,
IRubyObject cdr)
rb_assoc_new
|
static RubyArray |
newArray(Ruby runtime,
IRubyObject first,
IRubyObject second,
IRubyObject third) |
static RubyArray |
newArray(Ruby runtime,
IRubyObject first,
IRubyObject second,
IRubyObject third,
IRubyObject fourth) |
static RubyArray |
newArray(Ruby runtime,
java.util.List<? extends IRubyObject> list) |
static RubyArray |
newArray(Ruby runtime,
long len)
rb_ary_new2
|
static RubyArray |
newArrayLight(Ruby runtime)
rb_ary_new
|
static RubyArray |
newArrayLight(Ruby runtime,
int len) |
static RubyArray |
newArrayLight(Ruby runtime,
IRubyObject... objs) |
static RubyArray |
newArrayLight(Ruby runtime,
IRubyObject obj) |
static RubyArray |
newArrayLight(Ruby runtime,
IRubyObject car,
IRubyObject cdr) |
static RubyArray |
newArrayLight(Ruby runtime,
long len) |
static RubyArray |
newArrayMayCopy(Ruby runtime,
IRubyObject... args) |
static RubyArray |
newArrayMayCopy(Ruby runtime,
IRubyObject[] args,
int start) |
static RubyArray |
newArrayMayCopy(Ruby runtime,
IRubyObject[] args,
int start,
int length)
Construct a new RubyArray given the specified range of elements in the source array.
|
static RubyArray |
newArrayNoCopy(Ruby runtime,
IRubyObject... args) |
static RubyArray |
newArrayNoCopy(Ruby runtime,
IRubyObject[] args,
int begin) |
static RubyArray |
newArrayNoCopy(Ruby runtime,
IRubyObject[] args,
int begin,
int length) |
static RubyArray |
newArrayNoCopyLight(Ruby runtime,
IRubyObject[] args) |
static RubyArray |
newBlankArray(Ruby runtime,
int size)
Construct the most efficient array shape for the given size.
|
static RubyArray |
newEmptyArray(Ruby runtime) |
IRubyObject |
nitems()
rb_ary_nitems
|
IRubyObject |
op_and(IRubyObject other)
rb_ary_and
|
IRubyObject |
op_cmp(ThreadContext context,
IRubyObject obj)
rb_ary_cmp
|
IRubyObject |
op_diff(IRubyObject other)
rb_ary_diff
|
IRubyObject |
op_equal(ThreadContext context,
IRubyObject obj)
rb_ary_equal
|
IRubyObject |
op_or(IRubyObject other)
rb_ary_or
|
IRubyObject |
op_plus(IRubyObject obj)
rb_ary_plus
|
IRubyObject |
op_times(ThreadContext context,
IRubyObject times)
rb_ary_times
|
IRubyObject |
op_times19(ThreadContext context,
IRubyObject times)
Deprecated.
|
RubyString |
pack(ThreadContext context,
IRubyObject obj) |
RubyString |
pack(ThreadContext context,
IRubyObject obj,
IRubyObject maybeOpts) |
IRubyObject |
permutation(ThreadContext context,
Block block) |
IRubyObject |
permutation(ThreadContext context,
IRubyObject num,
Block block)
rb_ary_permutation
|
IRubyObject |
pop(ThreadContext context)
rb_ary_pop
|
IRubyObject |
pop(ThreadContext context,
IRubyObject num) |
IRubyObject |
product(ThreadContext context,
IRubyObject[] args)
rb_ary_product
|
IRubyObject |
product(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
product19(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated.
|
RubyArray |
push_m(IRubyObject[] items)
Deprecated.
|
RubyArray |
push_m19(IRubyObject[] items)
Deprecated.
|
RubyArray |
push(IRubyObject item) |
RubyArray |
push(IRubyObject[] items) |
IRubyObject |
rassoc(ThreadContext context,
IRubyObject value)
rb_ary_rassoc
|
IRubyObject |
rb_clear()
rb_ary_clear
|
IRubyObject |
reject_bang(ThreadContext context,
Block block) |
IRubyObject |
reject(ThreadContext context,
Block block) |
IRubyObject |
rejectBang(ThreadContext context,
Block block) |
IRubyObject |
rejectCommon(ThreadContext context,
Block block)
rb_ary_reject_bang
|
java.lang.Object |
remove(int index) |
boolean |
remove(java.lang.Object element) |
boolean |
removeAll(java.util.Collection c) |
IRubyObject |
repeated_permutation(ThreadContext context,
IRubyObject num,
Block block) |
IRubyObject |
repeatedCombination(ThreadContext context,
IRubyObject num,
Block block) |
IRubyObject |
replace(IRubyObject orig)
rb_ary_replace
|
boolean |
retainAll(java.util.Collection c) |
IRubyObject |
reverse_bang()
rb_ary_reverse_bang
|
IRubyObject |
reverse_each(ThreadContext context,
Block block) |
IRubyObject |
reverse()
rb_ary_reverse_m
|
IRubyObject |
reverseEach(ThreadContext context,
Block block)
rb_ary_reverse_each
|
IRubyObject |
rindex(ThreadContext context,
Block block) |
IRubyObject |
rindex(ThreadContext context,
IRubyObject obj)
rb_ary_rindex
|
IRubyObject |
rindex(ThreadContext context,
IRubyObject obj,
Block unused) |
IRubyObject |
rotate_bang(ThreadContext context) |
IRubyObject |
rotate_bang(ThreadContext context,
IRubyObject cnt) |
IRubyObject |
rotate(ThreadContext context) |
IRubyObject |
rotate(ThreadContext context,
IRubyObject cnt) |
protected RubyArray |
safeReverse() |
IRubyObject |
sample(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
select_bang(ThreadContext context,
Block block) |
IRubyObject |
select(ThreadContext context,
Block block) |
IRubyObject |
selectCommon(ThreadContext context,
Block block)
rb_ary_select
|
java.lang.Object |
set(int index,
java.lang.Object element) |
IRubyObject |
shift(ThreadContext context)
rb_ary_shift
|
IRubyObject |
shift(ThreadContext context,
IRubyObject num) |
IRubyObject |
shuffle_bang(ThreadContext context) |
IRubyObject |
shuffle_bang(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
shuffle(ThreadContext context) |
IRubyObject |
shuffle(ThreadContext context,
IRubyObject[] args) |
int |
size() |
IRubyObject |
slice_bang(IRubyObject arg0)
rb_ary_slice_bang
|
IRubyObject |
slice_bang(IRubyObject[] args)
Deprecated.
Use the versions with zero, one, or two args.
|
IRubyObject |
slice_bang(IRubyObject arg0,
IRubyObject arg1)
rb_ary_slice_bang
|
IRubyObject |
sort_bang(ThreadContext context,
Block block)
rb_ary_sort_bang
|
IRubyObject |
sort_bang19(ThreadContext context,
Block block)
Deprecated.
|
IRubyObject |
sort_by_bang(ThreadContext context,
Block block)
rb_ary_sort_by_bang
|
RubyArray |
sort(ThreadContext context,
Block block)
rb_ary_sort
|
RubyArray |
sort19(ThreadContext context,
Block block)
Deprecated.
|
protected IRubyObject |
sortInternal(ThreadContext context,
Block block) |
protected IRubyObject |
sortInternal(ThreadContext context,
boolean honorOverride) |
IRubyObject |
store(long index,
IRubyObject value)
rb_ary_store
|
protected void |
storeInternal(int index,
IRubyObject value) |
java.util.List |
subList(int fromIndex,
int toIndex) |
IRubyObject |
subseq(long beg,
long len)
rb_ary_subseq
|
IRubyObject |
subseq(RubyClass metaClass,
long beg,
long len,
boolean light) |
IRubyObject |
subseqLight(long beg,
long len)
rb_ary_subseq
|
IRubyObject |
sum(ThreadContext context,
Block block) |
IRubyObject |
sum(ThreadContext context,
IRubyObject init,
Block block) |
IRubyObject |
sumCommon(ThreadContext context,
IRubyObject init,
Block block) |
IRubyObject |
take_while(ThreadContext context,
Block block)
rb_ary_take_while
|
IRubyObject |
take(ThreadContext context,
IRubyObject n)
rb_ary_take
|
RubyArray |
to_a()
rb_ary_to_a
|
IRubyObject |
to_ary() |
IRubyObject |
to_h(ThreadContext context) |
IRubyObject |
to_s()
rb_any_to_s
call-seq:
obj.to_s => string
Returns a string representing obj.
|
RubyString |
to_s(ThreadContext context)
rb_ary_to_s
|
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] arg) |
<T> T |
toJava(java.lang.Class<T> target)
Convert the object to the specified Java class, if possible.
|
IRubyObject[] |
toJavaArray() |
IRubyObject[] |
toJavaArrayMaybeUnsafe() |
IRubyObject[] |
toJavaArrayUnsafe() |
RubyArray |
transpose()
rb_ary_transpose
|
static IRubyObject |
try_convert(ThreadContext context,
IRubyObject self,
IRubyObject arg) |
IRubyObject |
uniq_bang(ThreadContext context)
rb_ary_uniq_bang
|
IRubyObject |
uniq_bang(ThreadContext context,
Block block) |
IRubyObject |
uniq_bang19(ThreadContext context,
Block block)
Deprecated.
|
IRubyObject |
uniq(ThreadContext context)
rb_ary_uniq
|
IRubyObject |
uniq(ThreadContext context,
Block block) |
IRubyObject |
uniq19(ThreadContext context,
Block block)
Deprecated.
|
static RubyArray |
unmarshalFrom(UnmarshalStream input) |
protected void |
unpack()
Overridden by specialized arrays to fall back to IRubyObject[].
|
IRubyObject |
unshift() |
IRubyObject |
unshift(IRubyObject item)
rb_ary_unshift
|
IRubyObject |
unshift(IRubyObject[] items) |
IRubyObject |
unshift19()
Deprecated.
|
IRubyObject |
unshift19(IRubyObject item)
Deprecated.
|
IRubyObject |
unshift19(IRubyObject[] items)
Deprecated.
|
IRubyObject |
values_at(IRubyObject[] args)
rb_values_at
|
IRubyObject |
zip(ThreadContext context,
IRubyObject[] args,
Block block)
rb_ary_zip
|
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, eqlInternal, equalInternal, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toString
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, ensureInstanceVariablesSettable, eql_p, eql, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize19, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing, method_missing19, method, method19, methods, methods, methods19, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_equal_19, op_match, op_match19, op_not_equal, op_not_match, op_not, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_method, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
array
public static final int DEFAULT_INSPECT_STR_SIZE
public static final int ARRAY_DEFAULT_SIZE
protected IRubyObject[] values
protected int begin
protected int realLength
public RubyArray(Ruby runtime, int length)
public RubyArray(Ruby runtime, RubyClass klass, IRubyObject[] vals)
public ClassIndex getNativeClassIndex()
RubyObject
getNativeClassIndex
in interface CoreObjectType
getNativeClassIndex
in class RubyObject
ClassIndex
protected final void concurrentModification()
public static IRubyObject create(IRubyObject klass, IRubyObject[] args, Block block)
public static RubyArray newArray(Ruby runtime, IRubyObject obj)
public static RubyArray newArrayLight(Ruby runtime, IRubyObject obj)
public static RubyArray newArrayLight(Ruby runtime, IRubyObject car, IRubyObject cdr)
public static RubyArray newArrayLight(Ruby runtime, IRubyObject... objs)
public static RubyArray newArray(Ruby runtime, IRubyObject car, IRubyObject cdr)
public static RubyArray newArray(Ruby runtime, IRubyObject first, IRubyObject second, IRubyObject third)
public static RubyArray newArray(Ruby runtime, IRubyObject first, IRubyObject second, IRubyObject third, IRubyObject fourth)
public static RubyArray newArray(Ruby runtime, IRubyObject[] args)
public static RubyArray newArray(Ruby runtime, java.util.Collection<? extends IRubyObject> collection)
public static RubyArray newArray(Ruby runtime, java.util.List<? extends IRubyObject> list)
public static RubyArray newArrayMayCopy(Ruby runtime, IRubyObject... args)
public static RubyArray newArrayMayCopy(Ruby runtime, IRubyObject[] args, int start)
public static RubyArray newArrayMayCopy(Ruby runtime, IRubyObject[] args, int start, int length)
runtime
- the runtimeargs
- the argsstart
- start indexlength
- number of elementspublic static RubyArray newArrayNoCopy(Ruby runtime, IRubyObject... args)
public static RubyArray newArrayNoCopy(Ruby runtime, IRubyObject[] args, int begin)
public static RubyArray newArrayNoCopy(Ruby runtime, IRubyObject[] args, int begin, int length)
public static RubyArray newArrayNoCopyLight(Ruby runtime, IRubyObject[] args)
protected void unpack()
protected static final void checkLength(Ruby runtime, long length)
public final java.util.List<IRubyObject> getList()
public int getLength()
public IRubyObject[] toJavaArray()
public IRubyObject[] toJavaArrayUnsafe()
public IRubyObject[] toJavaArrayMaybeUnsafe()
protected final void modifyCheck()
protected void modify()
public IRubyObject initialize(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject initialize(ThreadContext context, Block block)
public IRubyObject initialize(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject initialize(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
protected IRubyObject initializeCommon(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject initialize_copy(IRubyObject orig)
initialize_copy
in class RubyBasicObject
public IRubyObject dup()
dup
in interface IRubyObject
dup
in class RubyBasicObject
public RubyArray aryDup()
public IRubyObject replace(IRubyObject orig)
public RubyString to_s(ThreadContext context)
public IRubyObject to_s()
RubyBasicObject
to_s
prints the object's class and an encoding of the
object id. As a special case, the top-level object that is the
initial execution context of Ruby programs returns ``main.''to_s
in class RubyBasicObject
public boolean includes(ThreadContext context, IRubyObject item)
@Deprecated public RubyFixnum hash19(ThreadContext context)
public RubyFixnum hash()
RubyBasicObject
hash
in class RubyBasicObject
public RubyFixnum hash(ThreadContext context)
public IRubyObject store(long index, IRubyObject value)
protected void storeInternal(int index, IRubyObject value)
public T eltOk(long offset)
public final IRubyObject entry(long offset)
public final IRubyObject entry(int offset)
public T eltInternal(int offset)
public IRubyObject fetch(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject fetch(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject fetch(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public static RubyArray aryToAry(ThreadContext context, IRubyObject obj)
@Deprecated public static RubyArray aryToAry(IRubyObject obj)
public IRubyObject insert()
public IRubyObject insert(IRubyObject arg)
@Deprecated public IRubyObject insert19(IRubyObject arg)
public IRubyObject insert(IRubyObject arg1, IRubyObject arg2)
@Deprecated public IRubyObject insert19(IRubyObject arg1, IRubyObject arg2)
public IRubyObject insert(IRubyObject[] args)
@Deprecated public IRubyObject insert19(IRubyObject[] args)
public RubyArray transpose()
public IRubyObject values_at(IRubyObject[] args)
public IRubyObject subseq(long beg, long len)
public IRubyObject subseqLight(long beg, long len)
public IRubyObject subseq(RubyClass metaClass, long beg, long len, boolean light)
public RubyFixnum length()
protected RubyEnumerator.SizeFn enumLengthFn()
public RubyArray append(IRubyObject item)
@Deprecated public RubyArray push_m(IRubyObject[] items)
public RubyArray push(IRubyObject item)
public RubyArray push(IRubyObject[] items)
@Deprecated public RubyArray push_m19(IRubyObject[] items)
public IRubyObject pop(ThreadContext context)
public IRubyObject pop(ThreadContext context, IRubyObject num)
public IRubyObject shift(ThreadContext context)
public IRubyObject shift(ThreadContext context, IRubyObject num)
public IRubyObject unshift()
@Deprecated public IRubyObject unshift19()
public IRubyObject unshift(IRubyObject item)
@Deprecated public IRubyObject unshift19(IRubyObject item)
public IRubyObject unshift(IRubyObject[] items)
@Deprecated public IRubyObject unshift19(IRubyObject[] items)
public RubyBoolean include_p(ThreadContext context, IRubyObject item)
public RubyBoolean frozen_p(ThreadContext context)
frozen_p
in class RubyBasicObject
public IRubyObject aref(IRubyObject[] args)
public IRubyObject aref(IRubyObject arg0)
@Deprecated public IRubyObject aref19(IRubyObject arg0)
public IRubyObject aref(IRubyObject arg0, IRubyObject arg1)
@Deprecated public IRubyObject aref19(IRubyObject arg0, IRubyObject arg1)
public IRubyObject aset(IRubyObject[] args)
public IRubyObject aset(IRubyObject arg0, IRubyObject arg1)
@Deprecated public IRubyObject aset19(IRubyObject arg0, IRubyObject arg1)
public IRubyObject aset(IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
@Deprecated public IRubyObject aset19(IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public IRubyObject at(IRubyObject pos)
public RubyArray concat(ThreadContext context, IRubyObject obj)
public RubyArray concat(ThreadContext context, IRubyObject[] objs)
public RubyArray concat(IRubyObject obj)
@Deprecated public RubyArray concat19(IRubyObject obj)
protected IRubyObject inspectAry(ThreadContext context)
public RubyString inspect(ThreadContext context)
public IRubyObject inspect()
RubyBasicObject
to_s
method to
generate the string.
[ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]"
Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003"inspect
in interface IRubyObject
inspect
in class RubyBasicObject
public IRubyObject first(IRubyObject[] args)
public IRubyObject first()
public IRubyObject first(IRubyObject arg0)
public IRubyObject last(IRubyObject[] args)
public IRubyObject last()
public IRubyObject last(IRubyObject arg0)
public IRubyObject each(ThreadContext context, Block block)
public IRubyObject eachSlice(ThreadContext context, int size, Block block)
public IRubyObject each_slice(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject eachIndex(ThreadContext context, Block block)
public IRubyObject each_index(ThreadContext context, Block block)
public IRubyObject reverseEach(ThreadContext context, Block block)
public IRubyObject reverse_each(ThreadContext context, Block block)
public IRubyObject join(ThreadContext context, IRubyObject sep)
public IRubyObject join(ThreadContext context)
protected RubyString joinStrings(RubyString sep, int max, RubyString result)
public IRubyObject join19(ThreadContext context, IRubyObject sep)
public IRubyObject join19(ThreadContext context)
public RubyArray to_a()
to_a
in class RubyBasicObject
public IRubyObject to_ary()
public IRubyObject to_h(ThreadContext context)
public RubyArray convertToArray()
RubyBasicObject
convertToArray
in interface IRubyObject
convertToArray
in class RubyBasicObject
public IRubyObject checkArrayType()
RubyBasicObject
checkArrayType
in interface IRubyObject
checkArrayType
in class RubyBasicObject
public IRubyObject op_equal(ThreadContext context, IRubyObject obj)
op_equal
in interface IRubyObject
op_equal
in class RubyBasicObject
public RubyBoolean compare(ThreadContext context, CallSite site, IRubyObject other)
public IRubyObject eql(ThreadContext context, IRubyObject obj)
public IRubyObject compact_bang()
public IRubyObject compact()
@Deprecated public IRubyObject compact19()
public IRubyObject empty_p()
public IRubyObject rb_clear()
public IRubyObject fill(ThreadContext context, Block block)
public IRubyObject fill(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block)
public IRubyObject fill(ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
protected IRubyObject fillCommon(ThreadContext context, int beg, long len, IRubyObject item)
protected IRubyObject fillCommon(ThreadContext context, int beg, long len, Block block)
public IRubyObject index(ThreadContext context, IRubyObject obj)
public IRubyObject index(ThreadContext context, IRubyObject obj, Block unused)
public IRubyObject index(ThreadContext context, Block block)
public IRubyObject bsearch(ThreadContext context, Block block)
public IRubyObject bsearch_index(ThreadContext context, Block block)
public IRubyObject rindex(ThreadContext context, IRubyObject obj)
public IRubyObject rindex(ThreadContext context, IRubyObject obj, Block unused)
public IRubyObject rindex(ThreadContext context, Block block)
public IRubyObject indexes(IRubyObject[] args)
public IRubyObject reverse_bang()
public IRubyObject reverse()
protected RubyArray safeReverse()
public RubyArray collect(ThreadContext context, Block block)
public IRubyObject collect19(ThreadContext context, Block block)
public IRubyObject map19(ThreadContext context, Block block)
public RubyArray collectBang(ThreadContext context, Block block)
public IRubyObject collect_bang(ThreadContext context, Block block)
public IRubyObject map_bang(ThreadContext context, Block block)
public IRubyObject selectCommon(ThreadContext context, Block block)
public IRubyObject select(ThreadContext context, Block block)
public IRubyObject select_bang(ThreadContext context, Block block)
public IRubyObject keep_if(ThreadContext context, Block block)
public IRubyObject delete(ThreadContext context, IRubyObject item, Block block)
public IRubyObject delete_at(int pos)
public IRubyObject delete_at(IRubyObject obj)
public final IRubyObject rejectCommon(ThreadContext context, Block block)
public IRubyObject reject(ThreadContext context, Block block)
public IRubyObject rejectBang(ThreadContext context, Block block)
public IRubyObject reject_bang(ThreadContext context, Block block)
public IRubyObject deleteIf(ThreadContext context, Block block)
public IRubyObject delete_if(ThreadContext context, Block block)
public IRubyObject zip(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject op_cmp(ThreadContext context, IRubyObject obj)
op_cmp
in class RubyBasicObject
public IRubyObject slice_bang(IRubyObject[] args)
public IRubyObject slice_bang(IRubyObject arg0)
public IRubyObject slice_bang(IRubyObject arg0, IRubyObject arg1)
public IRubyObject assoc(ThreadContext context, IRubyObject key)
public IRubyObject rassoc(ThreadContext context, IRubyObject value)
protected boolean flatten(ThreadContext context, int level, RubyArray result)
public IRubyObject flatten_bang(ThreadContext context)
public IRubyObject flatten_bang(ThreadContext context, IRubyObject arg)
@Deprecated public IRubyObject flatten_bang19(ThreadContext context, IRubyObject arg)
public IRubyObject flatten(ThreadContext context)
public IRubyObject flatten(ThreadContext context, IRubyObject arg)
@Deprecated public IRubyObject flatten19(ThreadContext context)
@Deprecated public IRubyObject flatten19(ThreadContext context, IRubyObject arg)
public IRubyObject count(ThreadContext context, Block block)
public IRubyObject count(ThreadContext context, IRubyObject obj, Block block)
public IRubyObject nitems()
public IRubyObject op_plus(IRubyObject obj)
public IRubyObject op_times(ThreadContext context, IRubyObject times)
@Deprecated public IRubyObject op_times19(ThreadContext context, IRubyObject times)
public IRubyObject uniq_bang(ThreadContext context)
public IRubyObject uniq_bang(ThreadContext context, Block block)
@Deprecated public IRubyObject uniq_bang19(ThreadContext context, Block block)
public IRubyObject uniq(ThreadContext context)
public IRubyObject uniq(ThreadContext context, Block block)
@Deprecated public IRubyObject uniq19(ThreadContext context, Block block)
public IRubyObject op_diff(IRubyObject other)
public IRubyObject op_and(IRubyObject other)
public IRubyObject op_or(IRubyObject other)
public RubyArray sort(ThreadContext context, Block block)
@Deprecated public RubyArray sort19(ThreadContext context, Block block)
public IRubyObject sort_bang(ThreadContext context, Block block)
@Deprecated public IRubyObject sort_bang19(ThreadContext context, Block block)
protected IRubyObject sortInternal(ThreadContext context, boolean honorOverride)
protected static int compareFixnums(RubyFixnum o1, RubyFixnum o2)
protected static int compareOthers(ThreadContext context, IRubyObject o1, IRubyObject o2)
protected IRubyObject sortInternal(ThreadContext context, Block block)
public IRubyObject sort_by_bang(ThreadContext context, Block block)
public IRubyObject take(ThreadContext context, IRubyObject n)
public IRubyObject take_while(ThreadContext context, Block block)
public IRubyObject drop(ThreadContext context, IRubyObject n)
public IRubyObject drop_while(ThreadContext context, Block block)
public IRubyObject cycle(ThreadContext context, Block block)
public IRubyObject cycle(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject product(ThreadContext context, IRubyObject[] args)
public IRubyObject product(ThreadContext context, IRubyObject[] args, Block block)
@Deprecated public IRubyObject product19(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject combination(ThreadContext context, IRubyObject num, Block block)
public IRubyObject repeatedCombination(ThreadContext context, IRubyObject num, Block block)
public IRubyObject permutation(ThreadContext context, IRubyObject num, Block block)
public IRubyObject permutation(ThreadContext context, Block block)
public IRubyObject repeated_permutation(ThreadContext context, IRubyObject num, Block block)
@Deprecated public IRubyObject choice(ThreadContext context)
public IRubyObject shuffle_bang(ThreadContext context)
public IRubyObject shuffle_bang(ThreadContext context, IRubyObject[] args)
public IRubyObject shuffle(ThreadContext context)
public IRubyObject shuffle(ThreadContext context, IRubyObject[] args)
public IRubyObject sample(ThreadContext context, IRubyObject[] args)
protected IRubyObject internalRotateBang(ThreadContext context, int cnt)
protected IRubyObject internalRotate(ThreadContext context, int cnt)
public IRubyObject rotate_bang(ThreadContext context)
public IRubyObject rotate_bang(ThreadContext context, IRubyObject cnt)
public IRubyObject rotate(ThreadContext context)
public IRubyObject rotate(ThreadContext context, IRubyObject cnt)
public IRubyObject all_p(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject any_p(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject sum(ThreadContext context, Block block)
public IRubyObject sum(ThreadContext context, IRubyObject init, Block block)
public IRubyObject sumCommon(ThreadContext context, IRubyObject init, Block block)
public IRubyObject find(ThreadContext context, IRubyObject ifnone, Block block)
public IRubyObject find_index(ThreadContext context, Block block)
public IRubyObject find_index(ThreadContext context, IRubyObject cond)
public IRubyObject detectCommon(ThreadContext context, IRubyObject ifnone, Block block)
public static void marshalTo(RubyArray array, MarshalStream output) throws java.io.IOException
java.io.IOException
public static RubyArray unmarshalFrom(UnmarshalStream input) throws java.io.IOException
java.io.IOException
public static RubyArray newBlankArray(Ruby runtime, int size)
runtime
- the runtimesize
- the sizepublic static IRubyObject try_convert(ThreadContext context, IRubyObject self, IRubyObject arg)
public RubyString pack(ThreadContext context, IRubyObject obj)
public RubyString pack(ThreadContext context, IRubyObject obj, IRubyObject maybeOpts)
public IRubyObject dig(ThreadContext context, IRubyObject[] args)
public IRubyObject max(ThreadContext context, Block block)
public IRubyObject max(ThreadContext context, IRubyObject num, Block block)
public IRubyObject min(ThreadContext context, Block block)
public IRubyObject min(ThreadContext context, IRubyObject num, Block block)
public java.lang.Class getJavaClass()
RubyBasicObject
getJavaClass
in interface IRubyObject
getJavaClass
in class RubyBasicObject
public void copyInto(IRubyObject[] target, int start)
public void copyInto(IRubyObject[] target, int start, int len)
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public boolean contains(java.lang.Object element)
contains
in interface java.util.Collection
contains
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] arg)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public <T> T toJava(java.lang.Class<T> target)
IRubyObject
toJava
in interface IRubyObject
toJava
in class RubyBasicObject
target
- The target type to which the object should be converted.IRubyObject.toJava(java.lang.Class<T>)
public boolean add(java.lang.Object element)
add
in interface java.util.Collection
add
in interface java.util.List
public boolean remove(java.lang.Object element)
remove
in interface java.util.Collection
remove
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
public java.lang.Object get(int index)
get
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
public void add(int index, java.lang.Object element)
add
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public int indexOf(java.lang.Object element)
indexOf
in interface java.util.List
public int lastIndexOf(java.lang.Object element)
lastIndexOf
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
public boolean equals(java.lang.Object other)
RubyObject
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class RubyObject
RubyBasicObject.equals(Object)
@Deprecated public IRubyObject compatc19()
@Deprecated public final RubyArray aryDup19()
@Deprecated public void ensureCapacity(int minCapacity)
minCapacity
- the desired minimum capacity of the internal array@Deprecated public IRubyObject flatten_bang19(ThreadContext context)
Copyright © 2001-2019 JRuby. All Rights Reserved.