NSMutableArray< E > Class Reference

Inherits com::webobjects::foundation::NSArray< E >, and java::util::RandomAccess.

Inherited by SubList< E >.

Collaboration diagram for NSMutableArray< E >:

Collaboration graph
[legend]

List of all members.

Classes

class  Itr
class  ListItr

Public Member Functions

void _moveObjectAtIndexToIndex (int sourceIndex, int destIndex)
boolean add (E element)
void add (int index, E element)
boolean addAll (int index, Collection<?extends E > collection)
boolean addAll (Collection<?extends E > collection)
void addObject (E object)
void addObjects (E...objects)
void addObjectsFromArray (NSArray<?extends E > otherArray)
void clear ()
Object clone ()
int count ()
void ensureCapacity (int capacity)
NSArray< E > immutableClone ()
void insertObjectAtIndex (E object, int index)
Iterator< E > iterator ()
ListIterator< E > listIterator (final int index)
ListIterator< E > listIterator ()
NSMutableArray< E > mutableClone ()
 NSMutableArray (List<?extends E > list, NSRange range, boolean ignoreNull)
 NSMutableArray (Vector<?extends E > vector, NSRange range, boolean ignoreNull)
 NSMutableArray (NSArray<?extends E > otherArray)
 NSMutableArray (E[] objects, NSRange range)
 NSMutableArray (E object, E...objects)
 NSMutableArray (E[] objects)
 NSMutableArray (E object)
 NSMutableArray (int capacity)
 NSMutableArray (Collection<?extends E > collection)
 NSMutableArray ()
boolean remove (Object o)
remove (int index)
boolean removeAll (Collection<?> collection)
void removeAllObjects ()
boolean removeIdenticalObject (Object object, NSRange range)
boolean removeIdenticalObject (Object object)
removeLastObject ()
boolean removeObject (Object object, NSRange range)
boolean removeObject (Object object)
removeObjectAtIndex (int index)
void removeObjects (Object...otherObjects)
void removeObjectsInArray (NSArray<?> otherArray)
void removeObjectsInRange (NSRange range)
replaceObjectAtIndex (E object, int index)
void replaceObjectAtIndex (int index, E object)
void replaceObjectsInRange (NSRange range, NSArray<?extends E > otherArray, NSRange otherRange)
boolean retainAll (Collection<?> c)
set (int index, E element)
void setArray (NSArray<?extends E > otherArray)
void sortUsingComparator (NSComparator comparator) throws NSComparator.ComparisonException
List< E > subList (int fromIndex, int toIndex)
void trimToSize ()

Static Public Attributes

static final Class _CLASS = _NSUtilitiesExtra._classWithFullySpecifiedNamePrime("com.webobjects.foundation.NSMutableArray")
static final Object ERX_MARKER = "Wonder"

Protected Member Functions

void _ensureCapacity (int capacity)
void _initializeWithCapacity (int capacity)
void _setCount (int count)
Object[] objectsNoCopy ()
void removeRange (int fromIndex, int toIndex)

Protected Attributes

transient int _capacity
transient int _count
transient Object[] _objectsCache
transient int modCount = 0

Package Functions

public< T > T[] toArray (T[] array)

Static Package Attributes

static final long serialVersionUID = -3909373569895711876L

Private Member Functions

boolean _removeObject (Object object, int index, int length, boolean identical)
void clearCache ()


Detailed Description

Bugfix reimplementation of NSMutableArray. To be able to use this class, the framework this class resides in must be before JavaFoundation.framework in your classpath.
It fixes a lot of issues: Once these issues are resolved in a WO distribution, this class will go away and the Apple supplied will will be used again without changes in code on your side.
Author:
ak

Constructor & Destructor Documentation

NSMutableArray (  ) 

NSMutableArray ( Collection<?extends E >  collection  ) 

NSMutableArray ( int  capacity  ) 

NSMutableArray ( object  ) 

NSMutableArray ( E[]  objects  ) 

NSMutableArray ( object,
E...  objects 
)

NSMutableArray ( E[]  objects,
NSRange  range 
)

NSMutableArray ( NSArray<?extends E >  otherArray  ) 

NSMutableArray ( Vector<?extends E >  vector,
NSRange  range,
boolean  ignoreNull 
)

NSMutableArray ( List<?extends E >  list,
NSRange  range,
boolean  ignoreNull 
)


Member Function Documentation

void _ensureCapacity ( int  capacity  )  [protected]

void _initializeWithCapacity ( int  capacity  )  [protected]

Reimplemented from NSArray< E >.

void _moveObjectAtIndexToIndex ( int  sourceIndex,
int  destIndex 
)

boolean _removeObject ( Object  object,
int  index,
int  length,
boolean  identical 
) [private]

void _setCount ( int  count  )  [protected]

Reimplemented from NSArray< E >.

boolean add ( element  ) 

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

void add ( int  index,
element 
)

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

boolean addAll ( int  index,
Collection<?extends E >  collection 
)

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

boolean addAll ( Collection<?extends E >  collection  ) 

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

void addObject ( object  ) 

void addObjects ( E...  objects  ) 

void addObjectsFromArray ( NSArray<?extends E >  otherArray  ) 

void clear (  ) 

Reimplemented from NSArray< E >.

void clearCache (  )  [private]

Clears out the object cache and tell us to recompute the hash.

Object clone (  ) 

Reimplemented from NSArray< E >.

int count (  ) 

Reimplemented from NSArray< E >.

void ensureCapacity ( int  capacity  ) 

NSArray<E> immutableClone (  ) 

Reimplemented from NSArray< E >.

void insertObjectAtIndex ( object,
int  index 
)

Iterator<E> iterator (  ) 

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

ListIterator<E> listIterator ( final int  index  ) 

Reimplemented in SubList< E >.

ListIterator<E> listIterator (  ) 

Reimplemented from NSArray< E >.

NSMutableArray<E> mutableClone (  ) 

Reimplemented from NSArray< E >.

Object [] objectsNoCopy (  )  [protected]

Reimplemented from NSArray< E >.

boolean remove ( Object  o  ) 

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

E remove ( int  index  ) 

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

boolean removeAll ( Collection<?>  collection  ) 

Reimplemented from NSArray< E >.

void removeAllObjects (  ) 

boolean removeIdenticalObject ( Object  object,
NSRange  range 
)

boolean removeIdenticalObject ( Object  object  ) 

E removeLastObject (  ) 

boolean removeObject ( Object  object,
NSRange  range 
)

boolean removeObject ( Object  object  ) 

E removeObjectAtIndex ( int  index  ) 

void removeObjects ( Object...  otherObjects  ) 

Much faster implementation of the remove method for larger arrays.

void removeObjectsInArray ( NSArray<?>  otherArray  ) 

void removeObjectsInRange ( NSRange  range  ) 

void removeRange ( int  fromIndex,
int  toIndex 
) [protected]

Reimplemented in SubList< E >.

E replaceObjectAtIndex ( object,
int  index 
)

Clears the objectsNoCopy too. It's wrong not to clear it.

void replaceObjectAtIndex ( int  index,
object 
)

Deprecated:
Method replaceObjectAtIndex is deprecated

void replaceObjectsInRange ( NSRange  range,
NSArray<?extends E >  otherArray,
NSRange  otherRange 
)

boolean retainAll ( Collection<?>  c  ) 

Reimplemented from NSArray< E >.

E set ( int  index,
element 
)

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >.

void setArray ( NSArray<?extends E >  otherArray  ) 

void sortUsingComparator ( NSComparator  comparator  )  throws NSComparator.ComparisonException

List<E> subList ( int  fromIndex,
int  toIndex 
)

Reimplemented from NSArray< E >.

Reimplemented in SubList< E >, and RandomAccessSubList< E >.

public<T> T [] toArray ( T[]  array  )  [package]

Bugfix for the broken implementation in NSArray.

Reimplemented from NSArray< E >.

void trimToSize (  ) 


Member Data Documentation

transient int _capacity [protected]

final Class _CLASS = _NSUtilitiesExtra._classWithFullySpecifiedNamePrime("com.webobjects.foundation.NSMutableArray") [static]

Reimplemented from NSArray< E >.

transient int _count [protected]

transient Object [] _objectsCache [protected]

final Object ERX_MARKER = "Wonder" [static]

transient int modCount = 0 [protected]

final long serialVersionUID = -3909373569895711876L [static, package]

Reimplemented from NSArray< E >.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:32 2012 for Project Wonder by  doxygen 1.5.8