org.jruby
Class RubyArray

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.RubyArray
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, IRubyObject

public class RubyArray
extends RubyObject
implements java.util.List

The implementation of the built-in class Array in Ruby.


Nested Class Summary
 class RubyArray.RubyArrayConversionIterator
           
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
static byte AREF_SWITCHVALUE
           
static int ARRAY_DEFAULT_SIZE
           
static byte ASET_SWITCHVALUE
           
static byte AT_SWITCHVALUE
           
static byte EMPTY_P_SWITCHVALUE
           
static byte EQUALEQUAL_SWITCHVALUE
           
static byte HASH_SWITCHVALUE
           
static byte INSPECT_SWITCHVALUE
           
static byte LAST_SWITCHVALUE
           
static byte LENGTH_SWITCHVALUE
           
static byte NIL_P_SWITCHVALUE
           
static byte OP_LSHIFT_SWITCHVALUE
           
static byte OP_PLUS_SWITCHVALUE
           
static byte OP_SPACESHIP_SWITCHVALUE
           
static byte OP_TIMES_SWITCHVALUE
           
static byte POP_SWITCHVALUE
           
static byte PUSH_SWITCHVALUE
           
static byte SHIFT_SWITCHVALUE
           
static byte TO_A_SWITCHVALUE
           
static byte TO_ARY_SWITCHVALUE
           
static byte TO_S_SWITCHVALUE
           
static byte UNSHIFT_SWITCHVALUE
           
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
RubyArray(Ruby runtime, long length, IRubyObject[] vals)
           
RubyArray(Ruby runtime, RubyClass klass)
           
 
Method Summary
 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)
           
 RubyArray append(IRubyObject item)
          rb_ary_push - specialized rb_ary_store
 IRubyObject aref(IRubyObject[] args)
          rb_ary_aref
 IRubyObject aset(IRubyObject[] args)
          rb_ary_aset
 IRubyObject assoc(IRubyObject key)
          rb_ary_assoc
 IRubyObject at(IRubyObject pos)
          rb_ary_at
 IRubyObject callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
           
 IRubyObject checkArrayType()
          rb_check_array_type
 void clear()
           
 RubyArray collect_bang(Block block)
          rb_ary_collect_bang
 RubyArray collect(Block block)
          rb_ary_collect
 IRubyObject compact_bang()
          rb_ary_compact_bang
 IRubyObject compact()
          rb_ary_compact
 RubyArray concat(IRubyObject obj)
          rb_ary_concat
 boolean contains(java.lang.Object element)
           
 boolean containsAll(java.util.Collection c)
           
 RubyArray convertToArray()
          Methods which perform to_xxx if the object has such a method
static IRubyObject create(IRubyObject klass, IRubyObject[] args, Block block)
          rb_ary_s_create
static RubyClass createArrayClass(Ruby runtime)
           
 IRubyObject delete_at(IRubyObject obj)
          rb_ary_delete_at_m
 IRubyObject delete_if(Block block)
          rb_ary_delete_if
 IRubyObject delete(IRubyObject item, Block block)
          rb_ary_delete
 IRubyObject each_index(Block block)
          rb_ary_each_index
 IRubyObject each(Block block)
          rb_ary_each
 IRubyObject eltInternal(int offset)
           
 IRubyObject eltInternalSet(int offset, IRubyObject item)
           
 IRubyObject empty_p()
          rb_ary_empty_p
 IRubyObject entry(int offset)
          rb_ary_entry
 IRubyObject entry(long offset)
          rb_ary_entry
 RubyBoolean eql_p(IRubyObject obj)
          rb_ary_eql
 IRubyObject fetch(IRubyObject[] args, Block block)
          rb_ary_fetch
 IRubyObject fill(IRubyObject[] args, Block block)
          rb_ary_fill
 IRubyObject first(IRubyObject[] args)
          rb_ary_first
 IRubyObject flatten_bang()
          rb_ary_flatten_bang
 IRubyObject flatten()
          rb_ary_flatten
 RubyBoolean frozen()
          rb_ary_frozen_p
 java.lang.Object get(int index)
           
 java.lang.Class getJavaClass()
          RubyMethod getJavaClass.
 int getLength()
           
 java.util.List getList()
          Getter for property list.
 int getNativeTypeIndex()
          This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.
 RubyFixnum hash()
          rb_ary_hash
 RubyBoolean include_p(IRubyObject item)
          rb_ary_includes
 boolean includes(IRubyObject item)
           
 IRubyObject index(IRubyObject obj)
          rb_ary_index
 IRubyObject indexes(IRubyObject[] args)
          rb_ary_indexes
 int indexOf(java.lang.Object element)
           
 IRubyObject initialize(IRubyObject[] args, Block block)
          rb_ary_initialize
 IRubyObject insert(IRubyObject[] args)
          rb_ary_insert
 IRubyObject inspect()
          rb_ary_inspect
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 RubyString join_m(IRubyObject[] args)
          rb_ary_join_m
 RubyString join(IRubyObject sep)
          rb_ary_join
 IRubyObject last(IRubyObject[] args)
          rb_ary_last
 int lastIndexOf(java.lang.Object element)
           
 RubyFixnum length()
          rb_ary_length
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
static void marshalTo(RubyArray array, MarshalStream output)
           
static RubyArray newArray(Ruby runtime)
          rb_ary_new
static RubyArray newArray(Ruby runtime, java.util.Collection collection)
           
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, long len)
          rb_ary_new2
static RubyArray newArrayLight(Ruby runtime)
          rb_ary_new
static RubyArray newArrayLight(Ruby runtime, long len)
           
static RubyArray newArrayNoCopy(Ruby runtime, IRubyObject[] args)
           
static RubyArray newArrayNoCopyLight(Ruby runtime, IRubyObject[] args)
           
 IRubyObject nitems()
          rb_ary_nitems
 IRubyObject op_and(IRubyObject other)
          rb_ary_and
 IRubyObject op_cmp(IRubyObject obj)
          rb_ary_cmp
 IRubyObject op_diff(IRubyObject other)
          rb_ary_diff
 IRubyObject op_equal(IRubyObject obj)
          rb_ary_equal
 IRubyObject op_or(IRubyObject other)
          rb_ary_or
 IRubyObject op_plus(IRubyObject obj)
          rb_ary_plus
 IRubyObject op_times(IRubyObject times)
          rb_ary_times
 RubyString pack(IRubyObject obj)
           
 IRubyObject pop()
          rb_ary_pop
 RubyArray push_m(IRubyObject[] items)
          rb_ary_push_m
 IRubyObject rassoc(IRubyObject value)
          rb_ary_rassoc
 IRubyObject rb_clear()
          rb_ary_clear
 IRubyObject reject_bang(Block block)
          rb_ary_reject_bang
 IRubyObject reject(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 replace(IRubyObject orig)
          rb_ary_replace
 boolean retainAll(java.util.Collection c)
           
 IRubyObject reverse_bang()
          rb_ary_reverse_bang
 IRubyObject reverse_each(Block block)
          rb_ary_reverse_each
 IRubyObject reverse()
          rb_ary_reverse_m
 IRubyObject rindex(IRubyObject obj)
          rb_ary_rindex
 RubyArray select(Block block)
          rb_ary_select
 java.lang.Object set(int index, java.lang.Object element)
           
 IRubyObject shift()
          rb_ary_shift
 int size()
           
 IRubyObject slice_bang(IRubyObject[] args)
          rb_ary_slice_bang
 RubyArray sort_bang(Block block)
          rb_ary_sort_bang
 RubyArray sort(Block block)
          rb_ary_sort
 IRubyObject store(long index, IRubyObject value)
          rb_ary_store
 java.util.List subList(int fromIndex, int toIndex)
           
 IRubyObject subseq(long beg, long len)
          rb_ary_subseq
 IRubyObject subseqLight(long beg, long len)
          rb_ary_subseq
 RubyArray to_a()
          rb_ary_to_a
 IRubyObject to_ary()
           
 IRubyObject to_s()
          rb_ary_to_s
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] arg)
           
 IRubyObject[] toJavaArray()
           
 IRubyObject[] toJavaArrayMaybeUnsafe()
           
 IRubyObject[] toJavaArrayUnsafe()
           
 RubyArray transpose()
          rb_ary_transpose
 IRubyObject uniq_bang()
          rb_ary_uniq_bang
 IRubyObject uniq()
          rb_ary_uniq
static RubyArray unmarshalFrom(UnmarshalStream input)
           
 RubyArray unshift_m(IRubyObject[] items)
          rb_ary_unshift_m
 RubyArray unshift(IRubyObject item)
          rb_ary_unshift
 IRubyObject values_at(IRubyObject[] args)
          rb_values_at
 IRubyObject zip(IRubyObject[] args, Block block)
          rb_ary_zip
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getMetaClass, getRuntime, getSingletonClass, getSingletonClassClone, getType, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

OP_PLUS_SWITCHVALUE

public static final byte OP_PLUS_SWITCHVALUE
See Also:
Constant Field Values

AREF_SWITCHVALUE

public static final byte AREF_SWITCHVALUE
See Also:
Constant Field Values

ASET_SWITCHVALUE

public static final byte ASET_SWITCHVALUE
See Also:
Constant Field Values

POP_SWITCHVALUE

public static final byte POP_SWITCHVALUE
See Also:
Constant Field Values

PUSH_SWITCHVALUE

public static final byte PUSH_SWITCHVALUE
See Also:
Constant Field Values

NIL_P_SWITCHVALUE

public static final byte NIL_P_SWITCHVALUE
See Also:
Constant Field Values

EQUALEQUAL_SWITCHVALUE

public static final byte EQUALEQUAL_SWITCHVALUE
See Also:
Constant Field Values

UNSHIFT_SWITCHVALUE

public static final byte UNSHIFT_SWITCHVALUE
See Also:
Constant Field Values

OP_LSHIFT_SWITCHVALUE

public static final byte OP_LSHIFT_SWITCHVALUE
See Also:
Constant Field Values

EMPTY_P_SWITCHVALUE

public static final byte EMPTY_P_SWITCHVALUE
See Also:
Constant Field Values

TO_S_SWITCHVALUE

public static final byte TO_S_SWITCHVALUE
See Also:
Constant Field Values

AT_SWITCHVALUE

public static final byte AT_SWITCHVALUE
See Also:
Constant Field Values

TO_ARY_SWITCHVALUE

public static final byte TO_ARY_SWITCHVALUE
See Also:
Constant Field Values

TO_A_SWITCHVALUE

public static final byte TO_A_SWITCHVALUE
See Also:
Constant Field Values

HASH_SWITCHVALUE

public static final byte HASH_SWITCHVALUE
See Also:
Constant Field Values

OP_TIMES_SWITCHVALUE

public static final byte OP_TIMES_SWITCHVALUE
See Also:
Constant Field Values

OP_SPACESHIP_SWITCHVALUE

public static final byte OP_SPACESHIP_SWITCHVALUE
See Also:
Constant Field Values

LENGTH_SWITCHVALUE

public static final byte LENGTH_SWITCHVALUE
See Also:
Constant Field Values

LAST_SWITCHVALUE

public static final byte LAST_SWITCHVALUE
See Also:
Constant Field Values

SHIFT_SWITCHVALUE

public static final byte SHIFT_SWITCHVALUE
See Also:
Constant Field Values

INSPECT_SWITCHVALUE

public static final byte INSPECT_SWITCHVALUE
See Also:
Constant Field Values

ARRAY_DEFAULT_SIZE

public static final int ARRAY_DEFAULT_SIZE
See Also:
Constant Field Values
Constructor Detail

RubyArray

public RubyArray(Ruby runtime,
                 long length,
                 IRubyObject[] vals)

RubyArray

public RubyArray(Ruby runtime,
                 RubyClass klass)
Method Detail

createArrayClass

public static RubyClass createArrayClass(Ruby runtime)

callMethod

public IRubyObject callMethod(ThreadContext context,
                              RubyModule rubyclass,
                              int methodIndex,
                              java.lang.String name,
                              IRubyObject[] args,
                              CallType callType,
                              Block block)
Specified by:
callMethod in interface IRubyObject
Overrides:
callMethod in class RubyObject
Returns:

getNativeTypeIndex

public int getNativeTypeIndex()
Description copied from class: RubyObject
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.

Specified by:
getNativeTypeIndex in interface IRubyObject
Overrides:
getNativeTypeIndex in class RubyObject
Returns:
the ClassIndex of the native type this object was constructed from

create

public static IRubyObject create(IRubyObject klass,
                                 IRubyObject[] args,
                                 Block block)
rb_ary_s_create


newArray

public static final RubyArray newArray(Ruby runtime,
                                       long len)
rb_ary_new2


newArrayLight

public static final RubyArray newArrayLight(Ruby runtime,
                                            long len)

newArray

public static final RubyArray newArray(Ruby runtime)
rb_ary_new


newArrayLight

public static final RubyArray newArrayLight(Ruby runtime)
rb_ary_new


newArray

public static RubyArray newArray(Ruby runtime,
                                 IRubyObject obj)

newArray

public static RubyArray newArray(Ruby runtime,
                                 IRubyObject car,
                                 IRubyObject cdr)
rb_assoc_new


newArray

public static RubyArray newArray(Ruby runtime,
                                 IRubyObject[] args)
rb_ary_new4, rb_ary_new3


newArrayNoCopy

public static RubyArray newArrayNoCopy(Ruby runtime,
                                       IRubyObject[] args)

newArrayNoCopyLight

public static RubyArray newArrayNoCopyLight(Ruby runtime,
                                            IRubyObject[] args)

newArray

public static RubyArray newArray(Ruby runtime,
                                 java.util.Collection collection)

getList

public java.util.List getList()
Getter for property list.

Returns:
Value of property list.

getLength

public int getLength()

toJavaArray

public IRubyObject[] toJavaArray()

toJavaArrayUnsafe

public IRubyObject[] toJavaArrayUnsafe()

toJavaArrayMaybeUnsafe

public IRubyObject[] toJavaArrayMaybeUnsafe()

initialize

public IRubyObject initialize(IRubyObject[] args,
                              Block block)
rb_ary_initialize

Overrides:
initialize in class RubyObject

replace

public IRubyObject replace(IRubyObject orig)
rb_ary_replace


to_s

public IRubyObject to_s()
rb_ary_to_s

Overrides:
to_s in class RubyObject

includes

public boolean includes(IRubyObject item)

hash

public RubyFixnum hash()
rb_ary_hash

Overrides:
hash in class RubyObject

store

public final IRubyObject store(long index,
                               IRubyObject value)
rb_ary_store


entry

public final IRubyObject entry(long offset)
rb_ary_entry


entry

public final IRubyObject entry(int offset)
rb_ary_entry


eltInternal

public final IRubyObject eltInternal(int offset)

eltInternalSet

public final IRubyObject eltInternalSet(int offset,
                                        IRubyObject item)

fetch

public IRubyObject fetch(IRubyObject[] args,
                         Block block)
rb_ary_fetch


insert

public IRubyObject insert(IRubyObject[] args)
rb_ary_insert


transpose

public RubyArray transpose()
rb_ary_transpose


values_at

public IRubyObject values_at(IRubyObject[] args)
rb_values_at


subseq

public IRubyObject subseq(long beg,
                          long len)
rb_ary_subseq


subseqLight

public IRubyObject subseqLight(long beg,
                               long len)
rb_ary_subseq


length

public RubyFixnum length()
rb_ary_length


append

public RubyArray append(IRubyObject item)
rb_ary_push - specialized rb_ary_store


push_m

public RubyArray push_m(IRubyObject[] items)
rb_ary_push_m


pop

public IRubyObject pop()
rb_ary_pop


shift

public IRubyObject shift()
rb_ary_shift


unshift

public RubyArray unshift(IRubyObject item)
rb_ary_unshift


unshift_m

public RubyArray unshift_m(IRubyObject[] items)
rb_ary_unshift_m


include_p

public RubyBoolean include_p(IRubyObject item)
rb_ary_includes


frozen

public RubyBoolean frozen()
rb_ary_frozen_p

Overrides:
frozen in class RubyObject

aref

public IRubyObject aref(IRubyObject[] args)
rb_ary_aref


aset

public IRubyObject aset(IRubyObject[] args)
rb_ary_aset


at

public IRubyObject at(IRubyObject pos)
rb_ary_at


concat

public RubyArray concat(IRubyObject obj)
rb_ary_concat


inspect

public IRubyObject inspect()
rb_ary_inspect

Specified by:
inspect in interface IRubyObject
Overrides:
inspect in class RubyObject
Returns:
String

first

public IRubyObject first(IRubyObject[] args)
rb_ary_first


last

public IRubyObject last(IRubyObject[] args)
rb_ary_last


each

public IRubyObject each(Block block)
rb_ary_each


each_index

public IRubyObject each_index(Block block)
rb_ary_each_index


reverse_each

public IRubyObject reverse_each(Block block)
rb_ary_reverse_each


join

public RubyString join(IRubyObject sep)
rb_ary_join


join_m

public RubyString join_m(IRubyObject[] args)
rb_ary_join_m


to_a

public RubyArray to_a()
rb_ary_to_a


to_ary

public IRubyObject to_ary()

convertToArray

public RubyArray convertToArray()
Description copied from interface: IRubyObject
Methods which perform to_xxx if the object has such a method

Specified by:
convertToArray in interface IRubyObject
Overrides:
convertToArray in class RubyObject
Returns:

checkArrayType

public IRubyObject checkArrayType()
Description copied from class: RubyObject
rb_check_array_type

Specified by:
checkArrayType in interface IRubyObject
Overrides:
checkArrayType in class RubyObject
Returns:

op_equal

public IRubyObject op_equal(IRubyObject obj)
rb_ary_equal


eql_p

public RubyBoolean eql_p(IRubyObject obj)
rb_ary_eql


compact_bang

public IRubyObject compact_bang()
rb_ary_compact_bang


compact

public IRubyObject compact()
rb_ary_compact


empty_p

public IRubyObject empty_p()
rb_ary_empty_p


rb_clear

public IRubyObject rb_clear()
rb_ary_clear


fill

public IRubyObject fill(IRubyObject[] args,
                        Block block)
rb_ary_fill


index

public IRubyObject index(IRubyObject obj)
rb_ary_index


rindex

public IRubyObject rindex(IRubyObject obj)
rb_ary_rindex


indexes

public IRubyObject indexes(IRubyObject[] args)
rb_ary_indexes


reverse_bang

public IRubyObject reverse_bang()
rb_ary_reverse_bang


reverse

public IRubyObject reverse()
rb_ary_reverse_m


collect

public RubyArray collect(Block block)
rb_ary_collect


collect_bang

public RubyArray collect_bang(Block block)
rb_ary_collect_bang


select

public RubyArray select(Block block)
rb_ary_select


delete

public IRubyObject delete(IRubyObject item,
                          Block block)
rb_ary_delete


delete_at

public IRubyObject delete_at(IRubyObject obj)
rb_ary_delete_at_m


reject

public IRubyObject reject(Block block)
rb_ary_reject_bang


reject_bang

public IRubyObject reject_bang(Block block)
rb_ary_reject_bang


delete_if

public IRubyObject delete_if(Block block)
rb_ary_delete_if


zip

public IRubyObject zip(IRubyObject[] args,
                       Block block)
rb_ary_zip


op_cmp

public IRubyObject op_cmp(IRubyObject obj)
rb_ary_cmp


slice_bang

public IRubyObject slice_bang(IRubyObject[] args)
rb_ary_slice_bang


assoc

public IRubyObject assoc(IRubyObject key)
rb_ary_assoc


rassoc

public IRubyObject rassoc(IRubyObject value)
rb_ary_rassoc


flatten_bang

public IRubyObject flatten_bang()
rb_ary_flatten_bang


flatten

public IRubyObject flatten()
rb_ary_flatten


nitems

public IRubyObject nitems()
rb_ary_nitems


op_plus

public IRubyObject op_plus(IRubyObject obj)
rb_ary_plus


op_times

public IRubyObject op_times(IRubyObject times)
rb_ary_times


uniq_bang

public IRubyObject uniq_bang()
rb_ary_uniq_bang


uniq

public IRubyObject uniq()
rb_ary_uniq


op_diff

public IRubyObject op_diff(IRubyObject other)
rb_ary_diff


op_and

public IRubyObject op_and(IRubyObject other)
rb_ary_and


op_or

public IRubyObject op_or(IRubyObject other)
rb_ary_or


sort

public RubyArray sort(Block block)
rb_ary_sort


sort_bang

public RubyArray sort_bang(Block block)
rb_ary_sort_bang


marshalTo

public static void marshalTo(RubyArray array,
                             MarshalStream output)
                      throws java.io.IOException
Throws:
java.io.IOException

unmarshalFrom

public static RubyArray unmarshalFrom(UnmarshalStream input)
                               throws java.io.IOException
Throws:
java.io.IOException

pack

public RubyString pack(IRubyObject obj)
See Also:
Pack.pack(org.jruby.Ruby, org.jruby.RubyArray, org.jruby.util.ByteList)

getJavaClass

public java.lang.Class getJavaClass()
Description copied from interface: IRubyObject
RubyMethod getJavaClass.

Specified by:
getJavaClass in interface IRubyObject
Overrides:
getJavaClass in class RubyObject
Returns:
Class

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection
Specified by:
isEmpty in interface java.util.List

contains

public boolean contains(java.lang.Object element)
Specified by:
contains in interface java.util.Collection
Specified by:
contains in interface java.util.List

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List

toArray

public java.lang.Object[] toArray(java.lang.Object[] arg)
Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in interface java.util.List

add

public boolean add(java.lang.Object element)
Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List

remove

public boolean remove(java.lang.Object element)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.List

containsAll

public boolean containsAll(java.util.Collection c)
Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in interface java.util.List

addAll

public boolean addAll(java.util.Collection c)
Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.List

addAll

public boolean addAll(int index,
                      java.util.Collection c)
Specified by:
addAll in interface java.util.List

removeAll

public boolean removeAll(java.util.Collection c)
Specified by:
removeAll in interface java.util.Collection
Specified by:
removeAll in interface java.util.List

retainAll

public boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.Collection
Specified by:
retainAll in interface java.util.List

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Specified by:
set in interface java.util.List

add

public void add(int index,
                java.lang.Object element)
Specified by:
add in interface java.util.List

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List

indexOf

public int indexOf(java.lang.Object element)
Specified by:
indexOf in interface java.util.List

lastIndexOf

public int lastIndexOf(java.lang.Object element)
Specified by:
lastIndexOf in interface java.util.List

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.List

listIterator

public java.util.ListIterator listIterator()
Specified by:
listIterator in interface java.util.List

listIterator

public java.util.ListIterator listIterator(int index)
Specified by:
listIterator in interface java.util.List

subList

public java.util.List subList(int fromIndex,
                              int toIndex)
Specified by:
subList in interface java.util.List

clear

public void clear()
Specified by:
clear in interface java.util.Collection
Specified by:
clear in interface java.util.List


Copyright © 2002-2007 JRuby Team. All Rights Reserved.