er.extensions.foundation
Class ERXMutableArray<E>
java.lang.Object
com.webobjects.foundation.NSArray<E>
com.webobjects.foundation.NSMutableArray<E>
er.extensions.foundation.ERXMutableArray<E>
- All Implemented Interfaces:
- com.webobjects.foundation._NSFoundationCollection, com.webobjects.foundation.NSCoding, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCodingAdditions, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
- Direct Known Subclasses:
- ERXMutableArray.ThreadSafeArray
public class ERXMutableArray<E>
- extends com.webobjects.foundation.NSMutableArray<E>
- implements java.util.List<E>
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 classes/interfaces inherited from class com.webobjects.foundation.NSArray |
com.webobjects.foundation.NSArray._AvgNumberOperator, com.webobjects.foundation.NSArray._CountOperator, com.webobjects.foundation.NSArray._MaxOperator, com.webobjects.foundation.NSArray._MinOperator, com.webobjects.foundation.NSArray._Operator, com.webobjects.foundation.NSArray._SumNumberOperator, com.webobjects.foundation.NSArray.Operator |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSCoding |
com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Support |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Fields inherited from class com.webobjects.foundation.NSMutableArray |
_capacity, _CLASS, _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 |
Method Summary |
static com.webobjects.foundation.NSArray |
fromBlob(com.webobjects.foundation.NSData d)
|
static com.webobjects.foundation.NSArray |
fromPropertyList(java.lang.String arrayAsString)
|
ERXMutableArray<E> |
mutableClone()
|
static
<T> com.webobjects.foundation.NSMutableArray<T> |
|
synchronizedArray()
|
static
<T> com.webobjects.foundation.NSArray<T> |
|
synchronizedArray(com.webobjects.foundation.NSArray<T> array)
|
static
<T> com.webobjects.foundation.NSMutableArray<T> |
|
synchronizedArray(com.webobjects.foundation.NSMutableArray<T> array)
|
com.webobjects.foundation.NSData |
toBlob()
|
static com.webobjects.foundation.NSData |
toBlob(com.webobjects.foundation.NSArray<?> d)
|
static com.webobjects.foundation.NSData |
toBlob(com.webobjects.foundation.NSMutableArray<?> d)
|
java.lang.String |
toPropertyList()
|
static java.lang.String |
toPropertyList(com.webobjects.foundation.NSArray<?> array)
|
java.lang.String[] |
toStringArray()
|
Methods inherited from class com.webobjects.foundation.NSMutableArray |
_ensureCapacity, _initializeWithCapacity, _moveObjectAtIndexToIndex, _setCount, add, add, addAll, addAll, addObject, addObjects, addObjectsFromArray, clear, clone, count, ensureCapacity, immutableClone, insertObjectAtIndex, iterator, listIterator, listIterator, objectsNoCopy, 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 |
_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, objectAtIndex, objectEnumerator, objects, objects, 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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
ERXMutableArray
public ERXMutableArray()
ERXMutableArray
public ERXMutableArray(java.util.Collection<? extends E> c)
ERXMutableArray
public ERXMutableArray(com.webobjects.foundation.NSArray<? extends E> array)
ERXMutableArray
public ERXMutableArray(int i)
ERXMutableArray
public ERXMutableArray(E obj)
ERXMutableArray
public ERXMutableArray(E[] aobj)
ERXMutableArray
public ERXMutableArray(E[] objects,
com.webobjects.foundation.NSRange range)
ERXMutableArray
public ERXMutableArray(java.util.Vector<? extends E> vector,
com.webobjects.foundation.NSRange range,
boolean flag)
toBlob
public static com.webobjects.foundation.NSData toBlob(com.webobjects.foundation.NSArray<?> d)
toBlob
public static com.webobjects.foundation.NSData toBlob(com.webobjects.foundation.NSMutableArray<?> d)
fromBlob
public static com.webobjects.foundation.NSArray fromBlob(com.webobjects.foundation.NSData d)
fromPropertyList
public static com.webobjects.foundation.NSArray fromPropertyList(java.lang.String arrayAsString)
toPropertyList
public static java.lang.String toPropertyList(com.webobjects.foundation.NSArray<?> array)
toBlob
public com.webobjects.foundation.NSData toBlob()
toPropertyList
public java.lang.String toPropertyList()
mutableClone
public ERXMutableArray<E> mutableClone()
- Overrides:
mutableClone
in class com.webobjects.foundation.NSMutableArray<E>
toStringArray
public java.lang.String[] toStringArray()
synchronizedArray
public static <T> com.webobjects.foundation.NSMutableArray<T> synchronizedArray()
synchronizedArray
public static <T> com.webobjects.foundation.NSArray<T> synchronizedArray(com.webobjects.foundation.NSArray<T> array)
synchronizedArray
public static <T> com.webobjects.foundation.NSMutableArray<T> synchronizedArray(com.webobjects.foundation.NSMutableArray<T> array)
Copyright © 2002 – 2007 Project Wonder.