Project Wonder 5.0

com.webobjects.eocontrol
Class _EOCheapCopyMutableArray

java.lang.Object
  extended by com.webobjects.foundation.NSArray<E>
      extended by com.webobjects.foundation.NSMutableArray
          extended by com.webobjects.eocontrol._EOCheapCopyMutableArray
All Implemented Interfaces:
EOFaulting, _NSFoundationCollection, NSCoding, NSKeyValueCoding, NSKeyValueCodingAdditions, Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class _EOCheapCopyMutableArray
extends NSMutableArray
implements EOFaulting

Reimp of the supplied class which will have some optimizations.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.foundation.NSArray
NSArray._AvgNumberOperator, NSArray._CountOperator, NSArray._MaxOperator, NSArray._MinOperator, NSArray._Operator, NSArray._SumNumberOperator, NSArray.Operator
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSCoding
NSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Field Summary
static Class _CLASS
           
 
Fields inherited from class com.webobjects.foundation.NSMutableArray
_capacity, _count, _objectsCache, ERX_MARKER, modCount
 
Fields inherited from class com.webobjects.foundation.NSArray
_hashCache, _NSArrayClassHashCode, _objects, AverageOperatorName, CheckForNull, CountOperatorName, EmptyArray, IgnoreNull, MaximumOperatorName, MinimumOperatorName, NotFound, SumOperatorName
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
_EOCheapCopyMutableArray()
           
_EOCheapCopyMutableArray(EOFaultHandler handler)
           
_EOCheapCopyMutableArray(NSArray otherArray)
           
 
Method Summary
 void _setCopy(_EOCheapCopyArray copy)
           
 void addObject(Object object)
           
 void addObjects(Object... objects)
           
 void clearFault()
           
 Object clone()
           
 int count()
           
 EOFaultHandler faultHandler()
           
 NSArray immutableClone()
           
 void insertObjectAtIndex(Object object, int index)
           
 boolean isFault()
           
 Iterator iterator()
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 NSMutableArray mutableClone()
           
 Object objectAtIndex(int index)
           
 Enumeration objectEnumerator()
           
protected  Object[] objectsNoCopy()
           
 void removeAllObjects()
           
 Object removeObjectAtIndex(int index)
           
 Object replaceObjectAtIndex(Object object, int index)
          Clears the objectsNoCopy too.
 Enumeration reverseObjectEnumerator()
           
 void setArray(NSArray otherArray)
           
 void sortUsingComparator(NSComparator comparator)
           
 String toString()
           
 void turnIntoFault(EOFaultHandler handler)
           
 void willRead()
           
 
Methods inherited from class com.webobjects.foundation.NSMutableArray
_ensureCapacity, _initializeWithCapacity, _moveObjectAtIndexToIndex, _setCount, add, add, addAll, addAll, addObjectsFromArray, clear, ensureCapacity, remove, remove, removeAll, removeIdenticalObject, removeIdenticalObject, removeLastObject, removeObject, removeObject, removeObjects, removeObjectsInArray, removeObjectsInRange, removeRange, replaceObjectAtIndex, replaceObjectsInRange, retainAll, set, subList, toArray, trimToSize
 
Methods inherited from class com.webobjects.foundation.NSArray
_mustRecomputeHash, _mutableComponentsSeparatedByString, _objects, _setMustRecomputeHash, _setObjects, _shallowHashCode, arrayByAddingObject, arrayByAddingObjectsFromArray, arrayList, classForCoder, componentsJoinedByString, componentsSeparatedByString, contains, containsAll, containsObject, decodeObject, emptyArray, encodeWithCoder, equals, firstObjectCommonWithArray, get, getObjects, getObjects, hashCode, indexOf, indexOfIdenticalObject, indexOfIdenticalObject, indexOfObject, indexOfObject, isEmpty, isEqualToArray, lastIndexOf, lastObject, makeObjectsPerformSelector, objects, objects, operatorForKey, operatorNames, removeOperatorForKey, setOperatorForKey, size, sortedArrayUsingComparator, sortedArrayUsingSelector, subarrayWithRange, takeValueForKey, takeValueForKeyPath, toArray, valueForKey, valueForKeyPath, vector
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_CLASS

public static final Class _CLASS
Constructor Detail

_EOCheapCopyMutableArray

public _EOCheapCopyMutableArray()

_EOCheapCopyMutableArray

public _EOCheapCopyMutableArray(NSArray otherArray)

_EOCheapCopyMutableArray

public _EOCheapCopyMutableArray(EOFaultHandler handler)
Method Detail

willRead

public void willRead()
Specified by:
willRead in interface EOFaulting

isFault

public boolean isFault()
Specified by:
isFault in interface EOFaulting

clearFault

public void clearFault()
Specified by:
clearFault in interface EOFaulting

turnIntoFault

public void turnIntoFault(EOFaultHandler handler)
Specified by:
turnIntoFault in interface EOFaulting

faultHandler

public EOFaultHandler faultHandler()
Specified by:
faultHandler in interface EOFaulting

clone

public Object clone()
Overrides:
clone in class NSMutableArray

mutableClone

public NSMutableArray mutableClone()
Overrides:
mutableClone in class NSMutableArray

immutableClone

public NSArray immutableClone()
Overrides:
immutableClone in class NSMutableArray

_setCopy

public void _setCopy(_EOCheapCopyArray copy)

objectsNoCopy

protected Object[] objectsNoCopy()
Overrides:
objectsNoCopy in class NSMutableArray

count

public int count()
Overrides:
count in class NSMutableArray

objectAtIndex

public Object objectAtIndex(int index)
Overrides:
objectAtIndex in class NSArray

objectEnumerator

public Enumeration objectEnumerator()
Overrides:
objectEnumerator in class NSArray

reverseObjectEnumerator

public Enumeration reverseObjectEnumerator()
Overrides:
reverseObjectEnumerator in class NSArray

setArray

public void setArray(NSArray otherArray)
Overrides:
setArray in class NSMutableArray

addObject

public void addObject(Object object)
Overrides:
addObject in class NSMutableArray

addObjects

public void addObjects(Object... objects)
Overrides:
addObjects in class NSMutableArray

replaceObjectAtIndex

public Object replaceObjectAtIndex(Object object,
                                   int index)
Description copied from class: NSMutableArray
Clears the objectsNoCopy too. It's wrong not to clear it.

Overrides:
replaceObjectAtIndex in class NSMutableArray

insertObjectAtIndex

public void insertObjectAtIndex(Object object,
                                int index)
Overrides:
insertObjectAtIndex in class NSMutableArray

removeObjectAtIndex

public Object removeObjectAtIndex(int index)
Overrides:
removeObjectAtIndex in class NSMutableArray

removeAllObjects

public void removeAllObjects()
Overrides:
removeAllObjects in class NSMutableArray

sortUsingComparator

public void sortUsingComparator(NSComparator comparator)
                         throws NSComparator.ComparisonException
Overrides:
sortUsingComparator in class NSMutableArray
Throws:
NSComparator.ComparisonException

toString

public String toString()
Overrides:
toString in class NSArray

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface List
Overrides:
iterator in class NSMutableArray

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List
Overrides:
listIterator in class NSMutableArray

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List
Overrides:
listIterator in class NSMutableArray

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.