Project Wonder 5.0.0.8795

er.extensions.foundation
Class ERXMutableArray

java.lang.Object
  extended by com.webobjects.foundation.NSArray<E>
      extended by com.webobjects.foundation.NSMutableArray
          extended by er.extensions.foundation.ERXMutableArray
All Implemented Interfaces:
_NSFoundationCollection, NSCoding, NSKeyValueCoding, NSKeyValueCodingAdditions, Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
ERXMutableArray.ThreadSafeArray

public class ERXMutableArray
extends NSMutableArray
implements List

Custom subclass of NSMutableArray. Implements List and can be used as a EOF custom value class because it can automatically en- and decode an NSMutableArray as blob into a database. NOTE: As the List implementation is based on the NSMutableArray implementation, care must be taken when subclassing; it is best if you use only List-methods when extending List-methods and NSArray methods in other cases. Otherwise you will most likely get into stack overflows. NOTE: List allows for NULL values, NSMutableArray does not. Therefore you can't use NULL objects. The ERPrototype name is mutableArray

See Also:
Serialized Form

Nested Class Summary
static class ERXMutableArray.ThreadSafeArray
          Simple thread safe wrapper.
 
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
 
Field Summary
static long serialVersionUID
           
 
Fields inherited from class com.webobjects.foundation.NSMutableArray
_CLASS, ERX_MARKER, modCount
 
Fields inherited from class com.webobjects.foundation.NSArray
_capacity, _count, _hashCache, _NSArrayClassHashCode, _objects, _objectsCache, AverageOperatorName, CountOperatorName, EmptyArray, MaximumOperatorName, MinimumOperatorName, NotFound, SumOperatorName
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Constructor Summary
ERXMutableArray()
           
ERXMutableArray(Collection c)
           
ERXMutableArray(int i)
           
ERXMutableArray(NSArray array)
           
ERXMutableArray(Object obj)
           
ERXMutableArray(Object[] aobj)
           
ERXMutableArray(Object[] objects, NSRange range)
           
ERXMutableArray(Vector vector, NSRange range, boolean flag)
           
 
Method Summary
static NSArray fromBlob(NSData d)
           
static NSArray fromPropertyList(String arrayAsString)
           
 NSMutableArray mutableClone()
           
static NSArray synchronizedArray()
           
static NSArray synchronizedArray(NSArray array)
           
 NSData toBlob()
           
static NSData toBlob(NSArray d)
           
static NSData toBlob(NSMutableArray d)
           
 String toPropertyList()
           
static String toPropertyList(NSArray array)
           
 String[] toStringArray()
           
 
Methods inherited from class com.webobjects.foundation.NSMutableArray
_moveObjectAtIndexToIndex, add, add, addAll, addAll, addObject, addObjects, addObjectsFromArray, clear, clone, ensureCapacity, immutableClone, insertObjectAtIndex, iterator, listIterator, listIterator, remove, remove, removeAll, removeAllObjects, removeIdenticalObject, removeIdenticalObject, removeLastObject, removeObject, removeObject, removeObjectAtIndex, removeObjects, removeObjectsInArray, removeObjectsInRange, removeRange, replaceObjectAtIndex, replaceObjectAtIndex, replaceObjectsInRange, retainAll, set, setArray, sortUsingComparator, subList, toArray, trimToSize
 
Methods inherited from class com.webobjects.foundation.NSArray
_ensureCapacity, _initializeWithCapacity, _mustRecomputeHash, _mutableComponentsSeparatedByString, _setMustRecomputeHash, _shallowHashCode, arrayByAddingObject, arrayByAddingObjectsFromArray, arrayList, classForCoder, componentsJoinedByString, componentsSeparatedByString, contains, containsAll, containsObject, count, decodeObject, emptyArray, encodeWithCoder, equals, firstObjectCommonWithArray, get, getObjects, getObjects, hashCode, indexOf, indexOfIdenticalObject, indexOfIdenticalObject, indexOfObject, indexOfObject, isEmpty, isEqualToArray, lastIndexOf, lastObject, makeObjectsPerformSelector, objectAtIndex, objectEnumerator, objects, objects, objectsNoCopy, operatorForKey, operatorNames, removeOperatorForKey, reverseObjectEnumerator, setOperatorForKey, size, sortedArrayUsingComparator, sortedArrayUsingSelector, subarrayWithRange, takeValueForKey, takeValueForKeyPath, toArray, toString, valueForKey, valueForKeyPath, vector
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ERXMutableArray

public ERXMutableArray()

ERXMutableArray

public ERXMutableArray(Collection c)

ERXMutableArray

public ERXMutableArray(NSArray array)

ERXMutableArray

public ERXMutableArray(int i)

ERXMutableArray

public ERXMutableArray(Object obj)

ERXMutableArray

public ERXMutableArray(Object[] aobj)

ERXMutableArray

public ERXMutableArray(Object[] objects,
                       NSRange range)

ERXMutableArray

public ERXMutableArray(Vector vector,
                       NSRange range,
                       boolean flag)
Method Detail

toBlob

public static NSData toBlob(NSArray d)

toBlob

public static NSData toBlob(NSMutableArray d)

fromBlob

public static NSArray fromBlob(NSData d)

fromPropertyList

public static NSArray fromPropertyList(String arrayAsString)

toPropertyList

public static String toPropertyList(NSArray array)

toBlob

public NSData toBlob()

toPropertyList

public String toPropertyList()

mutableClone

public NSMutableArray mutableClone()
Overrides:
mutableClone in class NSMutableArray

toStringArray

public String[] toStringArray()

synchronizedArray

public static NSArray synchronizedArray()

synchronizedArray

public static NSArray synchronizedArray(NSArray array)

Last updated: Fri, Jan 9, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.