Package org.jruby.util.collections
Class StringArraySet
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyArray
org.jruby.util.collections.StringArraySet
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,Iterable
,Collection
,List
,RandomAccess
,SequencedCollection
,InstanceVariables
,InternalVariables
,IRubyObject
,CoreObjectType
An RubyArray that maintains an O(1) Set for fast include? operations.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.RubyArray
RubyArray.ArgumentVisitor, RubyArray.DefaultComparator, RubyArray.RubyArrayConversionIterator
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Data
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer
-
Field Summary
Fields inherited from class org.jruby.RubyArray
ARRAY_DEFAULT_SIZE, begin, DEFAULT_INSPECT_STR_SIZE, realLength, values
Fields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR
Fields 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, varTableStamp
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(ThreadContext context, IRubyObject item) rb_ary_push - specialized rb_ary_storefinal void
appendString
(Ruby runtime, String element) aset
(ThreadContext context, IRubyObject arg0, IRubyObject arg1) aset
(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) rb_ary_asetcollectBang
(ThreadContext context, Block block) rb_ary_collect_bangcompact_bang
(ThreadContext context) rb_ary_compact_bangfinal boolean
containsString
(String element) delete
(ThreadContext context, IRubyObject item, Block block) rb_ary_deletedelete_if
(ThreadContext context, Block block) final void
deleteString
(ThreadContext context, String element) drop
(ThreadContext context, IRubyObject n) rb_ary_takedrop_while
(ThreadContext context, Block block) rb_ary_take_whileflatten_bang
(ThreadContext context) flatten_bang
(ThreadContext context, IRubyObject arg) final RubyBoolean
include_p
(ThreadContext context, IRubyObject item) rb_ary_includesinsert()
insert
(ThreadContext context, IRubyObject arg) rb_ary_insertinsert
(ThreadContext context, IRubyObject[] args) insert
(ThreadContext context, IRubyObject arg1, IRubyObject arg2) pop
(ThreadContext context) rb_ary_poppop
(ThreadContext context, IRubyObject num) push
(ThreadContext context, IRubyObject item) push
(ThreadContext context, IRubyObject[] items) rb_clear
(ThreadContext context) rb_ary_clearrejectBang
(ThreadContext context, Block block) replace
(ThreadContext context, IRubyObject orig) rb_ary_replaceselect_bang
(ThreadContext context, Block block) shift
(ThreadContext context) rb_ary_shiftshift
(ThreadContext context, IRubyObject num) slice_bang
(ThreadContext context, IRubyObject arg0) rb_ary_slice_bangslice_bang
(ThreadContext context, IRubyObject arg0, IRubyObject arg1) rb_ary_slice_bangunshift
(ThreadContext context) unshift
(ThreadContext context, IRubyObject item) rb_ary_unshiftunshift
(ThreadContext context, IRubyObject[] items) Methods inherited from class org.jruby.RubyArray
add, add, add, addAll, addAll, all_p, all_p, all_pCommon, any_p, any_p, any_pCommon, append, aref, aref, aref, aref, aref, aryAppend, aryAppend, aryDup, aryToAry, aryToAry, aset, aset, aset, assoc, at, at, bsearch, bsearch_index, checkArrayType, checkLength, checkLength, clear, collect, collect_bang, collectArray, collectEnum, combination, compact, compact, compact_bang, compare, compareFixnums, compareOthers, concat, concat, concat, concurrentModification, contains, containsAll, convertToArray, copyInto, copyInto, copyInto, copyInto, count, count, create, create, createArrayClass, cycle, cycle, deconstruct, delete_at, delete_at, delete_at, delete_at, deleteIf, detectCommon, difference, dig, dig, dig, dig, dup, dupImpl, each, each_index, each_slice, eachIndex, eachSlice, eltInternal, eltInternalSet, 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, frozen_p, get, getJavaClass, getLength, getList, getNativeClassIndex, hash, includes, includesByEql, index, index, index, indexes, indexes, indexOf, initialize, initialize, initialize, initialize, initialize_copy, initializeCommon, insert, insert, insert, inspect, inspectAry, internalRotate, internalRotateBang, intersect_p, intersection, isEmpty, isSharedJavaArray, iterator, join, join, join19, join19, joinStrings, keep_if, last, last, last, last, last, lastIndexOf, length, length, listIterator, listIterator, makeShared, 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_plus, op_times, pack, pack, permutation, permutation, product, product, push, push, push_m, rassoc, rb_clear, rbCollect, reject, reject_bang, rejectCommon, remove, remove, removeAll, repeated_permutation, repeatedCombination, replace, retainAll, reverse, reverse, reverse_bang, reverse_bang, reverse_each, reverseEach, rindex, rindex, rindex, rotate, rotate, rotate_bang, rotate_bang, rubyStream, safeArraySet, safeReverse, sample, sample, sample, sample, select, selectCommon, set, shuffle, shuffle, shuffle, shuffle_bang, shuffle_bang, shuffle_bang, size, size, slice_bang, slice_bang, slice_bang, sort, sort_bang, sort_by_bang, sortInternal, sortInternal, store, store, storeInternal, subList, subseq, 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, toJavaArray, toJavaArrayMaybeUnsafe, toJavaArrayUnsafe, transpose, transpose, try_convert, union, uniq, uniq, uniq_bang, uniq_bang, unmarshalFrom, unmarshalFrom, unpack, unshift, unshift, unshift, values_at, values_at, zip
Methods 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, toString
Methods 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, yieldUnder
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.jruby.runtime.builtin.IRubyObject
checkStringType19, dup, marshalLiveVariables
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
StringArraySet
-
-
Method Details
-
appendString
-
append
Description copied from class:RubyArray
rb_ary_push - specialized rb_ary_store -
rb_clear
Description copied from class:RubyArray
rb_ary_clear -
deleteString
-
delete
Description copied from class:RubyArray
rb_ary_delete -
delete_if
-
include_p
Description copied from class:RubyArray
rb_ary_includes -
replace
Description copied from class:RubyArray
rb_ary_replace -
aset
-
aset
public IRubyObject aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Description copied from class:RubyArray
rb_ary_aset -
collectBang
Description copied from class:RubyArray
rb_ary_collect_bang- Overrides:
collectBang
in classRubyArray
-
compact_bang
Description copied from class:RubyArray
rb_ary_compact_bang- Overrides:
compact_bang
in classRubyArray
-
drop
Description copied from class:RubyArray
rb_ary_take -
drop_while
Description copied from class:RubyArray
rb_ary_take_while- Overrides:
drop_while
in classRubyArray
-
flatten_bang
- Overrides:
flatten_bang
in classRubyArray
-
flatten_bang
- Overrides:
flatten_bang
in classRubyArray
-
insert
-
insert
Description copied from class:RubyArray
rb_ary_insert -
insert
-
insert
-
pop
Description copied from class:RubyArray
rb_ary_pop -
pop
-
push
-
push
-
rejectBang
- Overrides:
rejectBang
in classRubyArray
-
select_bang
- Overrides:
select_bang
in classRubyArray
-
shift
Description copied from class:RubyArray
rb_ary_shift -
shift
-
slice_bang
Description copied from class:RubyArray
rb_ary_slice_bang- Overrides:
slice_bang
in classRubyArray
-
slice_bang
Description copied from class:RubyArray
rb_ary_slice_bang- Overrides:
slice_bang
in classRubyArray
-
unshift
-
unshift
Description copied from class:RubyArray
rb_ary_unshift -
unshift
-
containsString
-