8.57. File tom/ObjectArray

class tom.ObjectArray

inherits

State supers: Array

methods


instance (id)
  with dynamic elements;

Undocumented.

instance tom.ObjectArray

methods


protected id
  initWithEnumerator Enumerator e;

Undocumented.


int (v)
  hash;

Hash some elements.


boolean
  equal id other;

Compare the elements.


Any
  at int index
pre
  index >= 0 && index < length
post
  length == old length;

Return the object at index in the receiving array.


boolean
  dump_self_p;

Return TRUE.


void
  dumpSelf MutableKeyed done
    indent MutableByteString prefix
    simple boolean allow_simple
     level int level
        to OutputStream s;

Dump the elements to the stream s.


int
  elementByteSize;

Undocumented.


(pointer, int)
  pointerToElements (int, int) (start, len);

Undocumented.


protected void
  setDuringConstruction (int, All) (index, object)
pre
  index >= 0 && index < length;

Set the object at the index in the receiving array, even if it is not a mutable array. This method /must/ only be used during construction of a constant array object.


class (State)
  mutableCopyClass;

Return the MutableObjectArray class.


id
    deepen int level
  mutably: boolean mutable_p = NO;

Deepen this copy.


void
  encodeUsingCoder Encoder coder;

Undocumented.


void
  initWithCoder Decoder coder;

Undocumented.


redefine void
  gc_mark_elements;

This method is invoked by the garbage collector to have the receiving object mark the elements it references. An ObjectArray must reference the objects it holds.