Project Wonder 5.0

com.webobjects.eocontrol
Class _EOCheapCopyArray

java.lang.Object
  extended by com.webobjects.foundation.NSArray
      extended by com.webobjects.eocontrol._EOCheapCopyArray
All Implemented Interfaces:
EOFaulting, _NSFoundationCollection, NSCoding, NSKeyValueCoding, NSKeyValueCodingAdditions, Serializable, Cloneable, Iterable, Collection, List

public class _EOCheapCopyArray
extends NSArray
implements EOFaulting

Reimplementation which fixes a bug in NSArray, where the iterator methods won't trigger the fault.

See Also:
Serialized Form
Author:
ak

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.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
_EOCheapCopyArray()
           
_EOCheapCopyArray(NSArray otherArray)
           
 
Method Summary
 void _setArray(NSArray otherArray)
           
 void clearFault()
           
 int count()
           
 EOFaultHandler faultHandler()
           
 Object get(int index)
           
 int hashCode()
           
 NSArray immutableClone()
           
 boolean isFault()
           
 Iterator iterator()
           
 int lastIndexOf(Object element)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 NSMutableArray mutableClone()
           
 Object objectAtIndex(int index)
           
 Enumeration objectEnumerator()
           
protected  Object[] objectsNoCopy()
           
 Enumeration reverseObjectEnumerator()
           
 String toString()
           
 void turnIntoFault(EOFaultHandler handler)
           
 void willRead()
           
 
Methods inherited from class com.webobjects.foundation.NSArray
_initializeWithCapacity, _mustRecomputeHash, _mutableComponentsSeparatedByString, _objects, _setCount, _setMustRecomputeHash, _setObjects, _shallowHashCode, add, add, addAll, addAll, arrayByAddingObject, arrayByAddingObjectsFromArray, arrayList, classForCoder, clear, clone, componentsJoinedByString, componentsSeparatedByString, contains, containsAll, containsObject, decodeObject, emptyArray, encodeWithCoder, equals, firstObjectCommonWithArray, getObjects, getObjects, indexOf, indexOfIdenticalObject, indexOfIdenticalObject, indexOfObject, indexOfObject, isEmpty, isEqualToArray, lastObject, makeObjectsPerformSelector, objects, objects, operatorForKey, operatorNames, remove, remove, removeAll, removeOperatorForKey, retainAll, set, setOperatorForKey, size, sortedArrayUsingComparator, sortedArrayUsingSelector, subarrayWithRange, subList, takeValueForKey, takeValueForKeyPath, toArray, 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

_EOCheapCopyArray

public _EOCheapCopyArray()

_EOCheapCopyArray

public _EOCheapCopyArray(NSArray otherArray)
Method Detail

_setArray

public void _setArray(NSArray otherArray)

clearFault

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

count

public int count()
Overrides:
count in class NSArray

faultHandler

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

isFault

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

mutableClone

public NSMutableArray mutableClone()
Overrides:
mutableClone in class NSArray

immutableClone

public NSArray immutableClone()
Overrides:
immutableClone in class NSArray

get

public Object get(int index)
Specified by:
get in interface List
Overrides:
get in class NSArray

objectAtIndex

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

objectEnumerator

public Enumeration objectEnumerator()
Overrides:
objectEnumerator in class NSArray

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface List
Overrides:
hashCode 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 NSArray

listIterator

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

listIterator

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

objectsNoCopy

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

reverseObjectEnumerator

public Enumeration reverseObjectEnumerator()
Overrides:
reverseObjectEnumerator in class NSArray

lastIndexOf

public int lastIndexOf(Object element)
Specified by:
lastIndexOf in interface List
Overrides:
lastIndexOf in class NSArray

toString

public String toString()
Overrides:
toString in class NSArray

turnIntoFault

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

willRead

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

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

Copyright © 2002 – 2011 Project Wonder.