Package org.jruby.specialized
Class RubyArrayTwoObject
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyArray
org.jruby.specialized.RubyArraySpecialized
org.jruby.specialized.RubyArrayTwoObject
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,Iterable,Collection,List,RandomAccess,SequencedCollection,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
Two object version of RubyArraySpecialized.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.RubyArray
RubyArray.ArgumentVisitor, RubyArray.DefaultComparator, RubyArray.RubyArrayConversionIteratorNested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
Fields inherited from class org.jruby.specialized.RubyArraySpecialized
MAX_PACKED_SIZEFields inherited from class org.jruby.RubyArray
ARRAY_DEFAULT_SIZE, begin, DEFAULT_INSPECT_STR_SIZE, realLength, valuesFields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
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, 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, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionRubyArrayTwoObject(RubyClass otherClass, IRubyObject car, IRubyObject cdr) RubyArrayTwoObject(Ruby runtime, IRubyObject car, IRubyObject cdr) -
Method Summary
Modifier and TypeMethodDescriptionRubyArray<?> aryDup()rb_ary_dupRubyArray<?> collectArray(ThreadContext context, 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()).voidcopyInto(ThreadContext context, IRubyObject[] target, int start) Copy the values contained in this array into the target array at the specified offset.voidcopyInto(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.protected RubyArray<?> final IRubyObjecteltInternal(int index) final IRubyObjecteltInternalSet(int index, IRubyObject value) protected voidfinishUnpack(IRubyObject nil) booleanincludes(ThreadContext context, IRubyObject item) intprotected IRubyObjectinspectAry(ThreadContext context) inspect_aryprotected IRubyObjectinternalRotate(ThreadContext context, int cnt) protected IRubyObjectinternalRotateBang(ThreadContext context, int cnt) protected RubyArray<?> rb_ary_make_sharedop_plus(ThreadContext context, IRubyObject obj) rb_ary_plusrb_clear(ThreadContext context) rb_ary_clearreplace(ThreadContext context, IRubyObject orig) rb_ary_replacereverse_bang(ThreadContext context) rb_ary_reverse_bangprotected RubyArray<?> protected IRubyObjectsortInternal(ThreadContext context, boolean honorOverride) protected IRubyObjectsortInternal(ThreadContext context, Block block) protected voidstoreInternal(int index, IRubyObject value) Deprecated.protected voidstoreInternal(ThreadContext context, int index, IRubyObject value) toJavaArray(ThreadContext context) Return a Java array copy of the elements contained in this Array.uniq(ThreadContext context) rb_ary_uniqMethods inherited from class org.jruby.specialized.RubyArraySpecialized
packed, unpackMethods inherited from class org.jruby.RubyArray
add, add, add, addAll, addAll, all_p, all_p, all_pCommon, any_p, any_p, any_pCommon, append, append, aref, aref, aref, aref, aref, aryAppend, aryAppend, aryToAry, aryToAry, aset, aset, aset, aset, aset, assoc, at, at, bsearch, bsearch_index, checkArrayType, checkLength, checkLength, clear, collect, collect_bang, collectBang, collectEnum, combination, compact, compact, compact_bang, compact_bang, compare, compareFixnums, compareOthers, concat, concat, concat, concurrentModification, contains, containsAll, convertToArray, copyInto, copyInto, count, count, create, create, createArrayClass, cycle, cycle, deconstruct, delete, delete_at, delete_at, delete_at, delete_at, delete_if, deleteIf, detectCommon, difference, dig, dig, dig, dig, drop, drop_while, dup, each, each_index, each_slice, eachIndex, eachSlice, eltOk, eltSetOk, eltSetOk, empty_p, empty_p, ensureCapacity, entry, entry, eql, equals, fetch, fetch, fetch, fetch_values, fill, fill, fill, fill, fillCommon, fillCommon, find, find_index, find_index, first, first, first, first, first, flatten, flatten, flatten, flatten_bang, flatten_bang, frozen_p, get, getJavaClass, getLength, getList, getNativeClassIndex, hash, include_p, includesByEql, index, index, index, indexes, indexes, initialize, initialize, initialize, initialize, initialize_copy, initializeCommon, insert, insert, insert, insert, insert, insert, insert, inspect, intersect_p, intersection, isEmpty, isSharedJavaArray, iterator, join, join, join19, join19, joinStrings, keep_if, last, last, last, last, last, lastIndexOf, length, length, listIterator, listIterator, map, map_bang, marshalTo, marshalTo, marshalTo, max, max, min, min, minmax, modify, modify, modifyCheck, modifyCheck, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayMayCopy, newArrayMayCopy, newArrayMayCopy, newArrayNoCopy, newArrayNoCopy, newArrayNoCopy, newArrayNoCopyLight, newBlankArray, newBlankArray, newEmptyArray, newEmptyArray, newSharedArray, nitems, nitems, none_p, none_p, none_pCommon, one_p, one_p, one_pCommon, op_and, op_and, op_cmp, op_diff, op_diff, op_equal, op_or, op_or, op_plus, op_times, pack, pack, permutation, permutation, pop, pop, product, product, push, push, push, push, push_m, rassoc, rb_clear, rbCollect, reject, reject_bang, rejectBang, rejectCommon, remove, remove, removeAll, repeated_permutation, repeatedCombination, replace, retainAll, reverse, reverse, reverse_bang, reverse_each, reverseEach, rindex, rindex, rindex, rotate, rotate, rotate_bang, rotate_bang, rubyStream, safeArraySet, sample, sample, sample, sample, select, select_bang, selectCommon, set, shift, shift, shuffle, shuffle, shuffle, shuffle_bang, shuffle_bang, shuffle_bang, size, size, slice_bang, slice_bang, slice_bang, slice_bang, slice_bang, sort, sort_bang, sort_by_bang, store, store, subList, subseq, subseq_step, subseqLight, sum, sum, sumCommon, take, take_while, to_a, to_a, to_ary, to_ary, to_h, to_h, to_s, toArray, toArray, toJava, toJavaArray, toJavaArrayMaybeUnsafe, toJavaArrayUnsafe, transpose, transpose, try_convert, union, uniq, uniq_bang, uniq_bang, unmarshalFrom, unmarshalFrom, unshift, unshift, unshift, unshift, unshift, unshift, values_at, values_at, zipMethods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, dig, dig1, dig2, eqlInternal, equalInternal, finishObjectClass, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
addFinalizer, addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, cloneSetup, compareTo, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, dupFinalizer, dupSetup, ensureInstanceVariablesSettable, eql, eql_p, eql_p, equal_p, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, finishBasicObjectClass, forEachInstanceVariable, forEachInstanceVariableName, freeze, getCurrentContext, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMarshalVariableList, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize_copy, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, makeMetaClass, makeMetaClassBootstrap, method, method, method, method_missing, methods, methods, nil_p, nonFixnumHashCode, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_match, op_not, op_not_equal, op_not_match, private_methods, protected_methods, public_methods, rbClone, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method, singleton_method, singleton_method_added, singleton_method_removed, singleton_method_undefined, singleton_methods, singletonClass, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_s, trust, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderMethods 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 org.jruby.runtime.builtin.IRubyObject
checkStringType19, dup, marshalLiveVariablesMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
RubyArrayTwoObject
-
RubyArrayTwoObject
-
-
Method Details
-
eltInternal
- Overrides:
eltInternalin classRubyArray
-
eltInternalSet
- Overrides:
eltInternalSetin classRubyArray
-
finishUnpack
- Specified by:
finishUnpackin classRubyArraySpecialized
-
aryDup
Description copied from class:RubyArrayrb_ary_dup -
rb_clear
Description copied from class:RubyArrayrb_ary_clear -
copyInto
Description copied from class:RubyArrayCopy the values contained in this array into the target array at the specified offset. It is expected that the target array is large enough to hold all necessary values. -
copyInto
Description copied from class:RubyArrayCopy the specified number of values contained in this array into the target array at the specified offset. It is expected that the target array is large enough to hold all necessary values. -
dupImpl
-
includes
-
indexOf
-
inspectAry
Description copied from class:RubyArrayinspect_ary- Overrides:
inspectAryin classRubyArray
-
internalRotate
- Overrides:
internalRotatein classRubyArray
-
internalRotateBang
- Overrides:
internalRotateBangin classRubyArray
-
op_plus
Description copied from class:RubyArrayrb_ary_plus -
replace
Description copied from class:RubyArrayrb_ary_replace -
reverse_bang
Description copied from class:RubyArrayrb_ary_reverse_bang- Overrides:
reverse_bangin classRubyArray
-
safeReverse
- Overrides:
safeReversein classRubyArray
-
sortInternal
- Overrides:
sortInternalin classRubyArray
-
sortInternal
- Overrides:
sortInternalin classRubyArray
-
storeInternal
Deprecated. -
storeInternal
- Overrides:
storeInternalin classRubyArray
-
subseq
-
toJavaArray
Description copied from class:RubyArrayReturn a Java array copy of the elements contained in this Array. This version always creates a new Java array that is exactly the length of the Array's elements.- Overrides:
toJavaArrayin classRubyArray- Returns:
- a Java array with exactly the size and contents of this RubyArray's elements
-
uniq
Description copied from class:RubyArrayrb_ary_uniq -
collectArray
Description copied from class:RubyArrayCollect the contents of this array after filtering through block, or return a new equivalent array if the block is not given (!isGiven()).- Overrides:
collectArrayin classRubyArray- Parameters:
context- the current contextblock- a block for filtering or NULL_BLOCK- Returns:
- an array of the filtered or unfiltered results
-