Top Description Fields Constructors Methods
org.jruby.util.collections

public Class StringArraySet

extends RubyArray
Class Inheritance
Imports
java.util.HashSet, .Set, org.jruby.Ruby, .RubyArray, .RubyBoolean, .RubyString, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

An RubyArray that maintains an O(1) Set for fast include? operations.

Field Summary

Modifier and TypeField and Description
private final Set<String>
Inherited from org.jruby.RubyArray:
ARRAY_DEFAULT_SIZEbeginDEFAULT_INSPECT_STR_SIZErealLengthvalues

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
add(IRubyObject
element to be appended to this list
item
)

Implements java.util.List.add.

Appends the specified element to the end of this list (optional operation).

private void
public synchronized RubyArray<T extends IRubyObject>
append(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.append.

rb_ary_push - specialized rb_ary_store

public final void
appendString(Ruby runtime, String element)

public synchronized IRubyObject
public synchronized IRubyObject
aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)

Overrides org.jruby.RubyArray.aset.

rb_ary_aset

public synchronized RubyArray<T extends IRubyObject>
collectBang(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.collectBang.

rb_ary_collect_bang

public synchronized IRubyObject
compact_bang(ThreadContext context)

Overrides org.jruby.RubyArray.compact_bang.

rb_ary_compact_bang

public final boolean
private static String
public synchronized IRubyObject
delete(ThreadContext context, IRubyObject item, Block block)

Overrides org.jruby.RubyArray.delete.

rb_ary_delete

public synchronized IRubyObject
public final void
deleteString(ThreadContext context, String element)

public synchronized IRubyObject
drop(ThreadContext context, IRubyObject n)

Overrides org.jruby.RubyArray.drop.

rb_ary_take

public synchronized IRubyObject
drop_while(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.drop_while.

rb_ary_take_while

public synchronized IRubyObject
public synchronized IRubyObject
public final RubyBoolean
include_p(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.include_p.

rb_ary_includes

public synchronized IRubyObject
public synchronized IRubyObject
insert(ThreadContext context, IRubyObject arg)

Overrides org.jruby.RubyArray.insert.

rb_ary_insert

public synchronized IRubyObject
public synchronized IRubyObject
public synchronized IRubyObject
pop(ThreadContext context)

Overrides org.jruby.RubyArray.pop.

rb_ary_pop

public synchronized IRubyObject
public synchronized RubyArray<T extends IRubyObject>
public synchronized RubyArray<T extends IRubyObject>
public synchronized IRubyObject
rb_clear(ThreadContext context)

Overrides org.jruby.RubyArray.rb_clear.

rb_ary_clear

private void
public synchronized IRubyObject
public synchronized IRubyObject
replace(ThreadContext context, IRubyObject orig)

Overrides org.jruby.RubyArray.replace.

rb_ary_replace

public synchronized IRubyObject
public synchronized IRubyObject
shift(ThreadContext context)

Overrides org.jruby.RubyArray.shift.

rb_ary_shift

public synchronized IRubyObject
public synchronized IRubyObject
slice_bang(ThreadContext context, IRubyObject arg0)

Overrides org.jruby.RubyArray.slice_bang.

rb_ary_slice_bang

public synchronized IRubyObject
slice_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1)

Overrides org.jruby.RubyArray.slice_bang.

rb_ary_slice_bang

public synchronized IRubyObject
public synchronized IRubyObject
unshift(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.unshift.

rb_ary_unshift

public synchronized IRubyObject
Inherited from org.jruby.RubyArray:
addaddaddaddAlladdAllall_pall_pall_pCommonany_pany_pany_pCommonappendarefarefarefarefarefaryAppendaryAppendaryDuparyToAryaryToAryasetasetasetassocatatbsearchbsearch_indexcheckArrayTypecheckLengthcheckLengthclearcollectcollect_bangcollectArraycollectEnumcombinationcompactcompactcompact_bangcomparecompareFixnumscompareOthersconcatconcatconcatconcurrentModificationcontainscontainsAllconvertToArraycopyIntocopyIntocopyIntocopyIntocountcountcreatecreatecreateArrayClasscyclecycledeconstructdelete_atdelete_atdelete_atdelete_atdeleteIfdetectCommondifferencedigdigdigdigdupdupImpleacheach_indexeach_sliceeachIndexeachSliceeltInternaleltInternalSeteltOkeltSetOkeltSetOkempty_pempty_pensureCapacityentryentryeqlequalsfetchfetchfetchfetch_valuesfillfillfillfillfillCommonfillCommonfindfind_indexfind_indexfirstfirstfirstfirstfirstflattenflattenflattenfrozen_pgetgetJavaClassgetLengthgetListgetNativeClassIndexhashincludesincludesByEqlindexindexindexindexesindexesindexOfinitializeinitializeinitializeinitializeinitialize_copyinitializeCommoninsertinsertinsertinspectinspectAryinternalRotateinternalRotateBangintersect_pintersectionisEmptyisSharedJavaArrayiteratorjoinjoinjoin19join19joinStringskeep_iflastlastlastlastlastlastIndexOflengthlengthlistIteratorlistIteratormakeSharedmapmap_bangmarshalTomarshalTomarshalTomaxmaxminminminmaxmodifymodifymodifyCheckmodifyChecknewArraynewArraynewArraynewArraynewArraynewArraynewArraynewArraynewArraynewArraynewArraynewArraynewArrayLightnewArrayLightnewArrayLightnewArrayLightnewArrayLightnewArrayLightnewArrayLightnewArrayLightnewArrayMayCopynewArrayMayCopynewArrayMayCopynewArrayNoCopynewArrayNoCopynewArrayNoCopynewArrayNoCopyLightnewBlankArraynewBlankArraynewEmptyArraynewEmptyArraynewSharedArraynitemsnitemsnone_pnone_pnone_pCommonone_pone_pone_pCommonop_andop_andop_cmpop_diffop_diffop_equalop_orop_orop_plusop_plusop_timespackpackpermutationpermutationproductproductpushpushpush_mrassocrb_clearrbCollectrejectreject_bangrejectCommonremoveremoveremoveAllrepeated_permutationrepeatedCombinationreplaceretainAllreversereversereverse_bangreverse_bangreverse_eachreverseEachrindexrindexrindexrotaterotaterotate_bangrotate_bangrubyStreamsafeArraySetsafeReversesamplesamplesamplesampleselectselectCommonsetshuffleshuffleshuffleshuffle_bangshuffle_bangshuffle_bangsizesizeslice_bangslice_bangslice_bangsortsort_bangsort_by_bangsortInternalsortInternalstorestorestoreInternalsubListsubseqsubseqsubseq_stepsubseqLightsumsumsumCommontaketake_whileto_ato_ato_aryto_aryto_hto_hto_stoArraytoArraytoJavatoJavaArraytoJavaArraytoJavaArrayMaybeUnsafetoJavaArrayUnsafetransposetransposetry_convertunionuniquniquniq_banguniq_bangunmarshalFromunmarshalFromunpackunshiftunshiftunshiftvalues_atvalues_atzip

Field Detail

setback to summary
private final Set<String> set

Constructor Detail

StringArraySetback to summary
public StringArraySet(Ruby runtime)

Method Detail

addback to summary
private void add(IRubyObject item)

Implements java.util.List.add.

Doc from java.util.List.add.

Appends the specified element to the end of this list (optional operation).

Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.

Parameters
item:IRubyObject

element to be appended to this list

Returns:void

true (as specified by Collection#add)

addAllback to summary
private void addAll(IRubyObject[] items)
appendback to summary
public synchronized RubyArray<T extends IRubyObject> append(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.append.

Doc from org.jruby.RubyArray.append.

rb_ary_push - specialized rb_ary_store

Annotations
@Override
appendStringback to summary
public final void appendString(Ruby runtime, String element)
asetback to summary
public synchronized IRubyObject aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1)

Overrides org.jruby.RubyArray.aset.

Annotations
@Override
asetback to summary
public synchronized IRubyObject aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)

Overrides org.jruby.RubyArray.aset.

Doc from org.jruby.RubyArray.aset.

rb_ary_aset

Annotations
@Override
collectBangback to summary
public synchronized RubyArray<T extends IRubyObject> collectBang(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.collectBang.

Doc from org.jruby.RubyArray.collectBang.

rb_ary_collect_bang

Annotations
@Override
compact_bangback to summary
public synchronized IRubyObject compact_bang(ThreadContext context)

Overrides org.jruby.RubyArray.compact_bang.

Doc from org.jruby.RubyArray.compact_bang.

rb_ary_compact_bang

Annotations
@Override
containsStringback to summary
public final boolean containsString(String element)
convertToStringback to summary
private static String convertToString(IRubyObject item)
deleteback to summary
public synchronized IRubyObject delete(ThreadContext context, IRubyObject item, Block block)

Overrides org.jruby.RubyArray.delete.

Doc from org.jruby.RubyArray.delete.

rb_ary_delete

Annotations
@Override
delete_ifback to summary
public synchronized IRubyObject delete_if(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.delete_if.

Annotations
@Override
deleteStringback to summary
public final void deleteString(ThreadContext context, String element)
dropback to summary
public synchronized IRubyObject drop(ThreadContext context, IRubyObject n)

Overrides org.jruby.RubyArray.drop.

Doc from org.jruby.RubyArray.drop.

rb_ary_take

Annotations
@Override
drop_whileback to summary
public synchronized IRubyObject drop_while(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.drop_while.

Doc from org.jruby.RubyArray.drop_while.

rb_ary_take_while

Annotations
@Override
flatten_bangback to summary
public synchronized IRubyObject flatten_bang(ThreadContext context)

Overrides org.jruby.RubyArray.flatten_bang.

Annotations
@Override
flatten_bangback to summary
public synchronized IRubyObject flatten_bang(ThreadContext context, IRubyObject arg)

Overrides org.jruby.RubyArray.flatten_bang.

Annotations
@Override
include_pback to summary
public final RubyBoolean include_p(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.include_p.

Doc from org.jruby.RubyArray.include_p.

rb_ary_includes

Annotations
@Override
insertback to summary
public synchronized IRubyObject insert()

Overrides org.jruby.RubyArray.insert.

Annotations
@Override
insertback to summary
public synchronized IRubyObject insert(ThreadContext context, IRubyObject arg)

Overrides org.jruby.RubyArray.insert.

Doc from org.jruby.RubyArray.insert.

rb_ary_insert

Annotations
@Override
insertback to summary
public synchronized IRubyObject insert(ThreadContext context, IRubyObject arg1, IRubyObject arg2)

Overrides org.jruby.RubyArray.insert.

Annotations
@Override
insertback to summary
public synchronized IRubyObject insert(ThreadContext context, IRubyObject[] args)

Overrides org.jruby.RubyArray.insert.

Annotations
@Override
popback to summary
public synchronized IRubyObject pop(ThreadContext context)

Overrides org.jruby.RubyArray.pop.

Doc from org.jruby.RubyArray.pop.

rb_ary_pop

Annotations
@Override
popback to summary
public synchronized IRubyObject pop(ThreadContext context, IRubyObject num)

Overrides org.jruby.RubyArray.pop.

Annotations
@Override
pushback to summary
public synchronized RubyArray<T extends IRubyObject> push(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.push.

Annotations
@Override
pushback to summary
public synchronized RubyArray<T extends IRubyObject> push(ThreadContext context, IRubyObject[] items)

Overrides org.jruby.RubyArray.push.

Annotations
@Override
rb_clearback to summary
public synchronized IRubyObject rb_clear(ThreadContext context)

Overrides org.jruby.RubyArray.rb_clear.

Doc from org.jruby.RubyArray.rb_clear.

rb_ary_clear

Annotations
@Override
rehashback to summary
private void rehash()
rejectBangback to summary
public synchronized IRubyObject rejectBang(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.rejectBang.

Annotations
@Override
replaceback to summary
public synchronized IRubyObject replace(ThreadContext context, IRubyObject orig)

Overrides org.jruby.RubyArray.replace.

Doc from org.jruby.RubyArray.replace.

rb_ary_replace

Annotations
@Override
select_bangback to summary
public synchronized IRubyObject select_bang(ThreadContext context, Block block)

Overrides org.jruby.RubyArray.select_bang.

Annotations
@Override
shiftback to summary
public synchronized IRubyObject shift(ThreadContext context)

Overrides org.jruby.RubyArray.shift.

Doc from org.jruby.RubyArray.shift.

rb_ary_shift

Annotations
@Override
shiftback to summary
public synchronized IRubyObject shift(ThreadContext context, IRubyObject num)

Overrides org.jruby.RubyArray.shift.

Annotations
@Override
slice_bangback to summary
public synchronized IRubyObject slice_bang(ThreadContext context, IRubyObject arg0)

Overrides org.jruby.RubyArray.slice_bang.

Doc from org.jruby.RubyArray.slice_bang.

rb_ary_slice_bang

Annotations
@Override
slice_bangback to summary
public synchronized IRubyObject slice_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1)

Overrides org.jruby.RubyArray.slice_bang.

Doc from org.jruby.RubyArray.slice_bang.

rb_ary_slice_bang

Annotations
@Override
unshiftback to summary
public synchronized IRubyObject unshift(ThreadContext context)

Overrides org.jruby.RubyArray.unshift.

Annotations
@Override
unshiftback to summary
public synchronized IRubyObject unshift(ThreadContext context, IRubyObject item)

Overrides org.jruby.RubyArray.unshift.

Doc from org.jruby.RubyArray.unshift.

rb_ary_unshift

Annotations
@Override
unshiftback to summary
public synchronized IRubyObject unshift(ThreadContext context, IRubyObject[] items)

Overrides org.jruby.RubyArray.unshift.

Annotations
@Override