er.extensions.foundation
Class ERXMutableArray.ThreadSafeArray<V>
java.lang.Object
com.webobjects.foundation.NSArray<E>
com.webobjects.foundation.NSMutableArray<E>
er.extensions.foundation.ERXMutableArray<V>
er.extensions.foundation.ERXMutableArray.ThreadSafeArray<V>
- 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<V>, java.util.Collection<V>, java.util.List<V>, java.util.RandomAccess
- Enclosing class:
- ERXMutableArray<E>
public static class ERXMutableArray.ThreadSafeArray<V>
- extends ERXMutableArray<V>
Simple thread safe wrapper. May or may not be correct, but it doesn't
matter as you will never, *ever* call this directly, but call
ERXMutableArray.synchronizedArray();
instead and we will fix all the bugs in due time.
- See Also:
- Serialized Form
- Author:
- ak
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 |
void |
_moveObjectAtIndexToIndex(int sourceIndex,
int destIndex)
|
int |
_shallowHashCode()
|
void |
addObject(V object)
|
void |
addObjects(V... objects)
|
void |
addObjectsFromArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
|
com.webobjects.foundation.NSArray<V> |
arrayByAddingObject(V object)
|
com.webobjects.foundation.NSArray<V> |
arrayByAddingObjectsFromArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
|
java.util.ArrayList<V> |
arrayList()
|
java.lang.Class |
classForCoder()
|
java.lang.Object |
clone()
|
java.lang.String |
componentsJoinedByString(java.lang.String separator)
|
boolean |
containsObject(java.lang.Object object)
|
int |
count()
|
void |
encodeWithCoder(com.webobjects.foundation.NSCoder coder)
|
boolean |
equals(java.lang.Object object)
|
V |
firstObjectCommonWithArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
|
int |
hashCode()
|
com.webobjects.foundation.NSArray<V> |
immutableClone()
|
int |
indexOfIdenticalObject(java.lang.Object object)
|
int |
indexOfIdenticalObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
|
int |
indexOfObject(java.lang.Object object)
|
int |
indexOfObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
|
void |
insertObjectAtIndex(V object,
int index)
|
boolean |
isEqualToArray(com.webobjects.foundation.NSArray<?> otherArray)
|
V |
lastObject()
|
void |
makeObjectsPerformSelector(com.webobjects.foundation.NSSelector selector,
java.lang.Object... parameters)
|
V |
objectAtIndex(int index)
|
java.util.Enumeration<V> |
objectEnumerator()
|
java.lang.Object[] |
objects()
|
java.lang.Object[] |
objects(com.webobjects.foundation.NSRange range)
|
protected java.lang.Object[] |
objectsNoCopy()
|
void |
removeAllObjects()
|
boolean |
removeIdenticalObject(java.lang.Object object)
|
boolean |
removeIdenticalObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
|
V |
removeLastObject()
|
boolean |
removeObject(java.lang.Object object)
|
boolean |
removeObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
|
V |
removeObjectAtIndex(int index)
|
void |
removeObjects(java.lang.Object... objects)
Much faster implementation of the remove method for larger arrays. |
void |
removeObjectsInArray(com.webobjects.foundation.NSArray<?> otherArray)
|
void |
removeObjectsInRange(com.webobjects.foundation.NSRange range)
|
V |
replaceObjectAtIndex(V object,
int index)
Clears the objectsNoCopy too. |
void |
replaceObjectsInRange(com.webobjects.foundation.NSRange range,
com.webobjects.foundation.NSArray<? extends V> otherArray,
com.webobjects.foundation.NSRange otherRange)
|
java.util.Enumeration<V> |
reverseObjectEnumerator()
|
void |
setArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
|
com.webobjects.foundation.NSArray<V> |
sortedArrayUsingComparator(com.webobjects.foundation.NSComparator comparator)
|
void |
sortUsingComparator(com.webobjects.foundation.NSComparator comparator)
|
com.webobjects.foundation.NSArray<V> |
subarrayWithRange(com.webobjects.foundation.NSRange range)
|
void |
takeValueForKey(java.lang.Object value,
java.lang.String key)
|
void |
takeValueForKeyPath(java.lang.Object value,
java.lang.String keyPath)
|
java.lang.String |
toString()
|
java.lang.Object |
valueForKey(java.lang.String key)
|
java.lang.Object |
valueForKeyPath(java.lang.String keyPath)
|
java.util.Vector<V> |
vector()
|
Methods inherited from class er.extensions.foundation.ERXMutableArray |
fromBlob, fromPropertyList, mutableClone, synchronizedArray, synchronizedArray, synchronizedArray, toBlob, toBlob, toBlob, toPropertyList, toPropertyList, toStringArray |
Methods inherited from class com.webobjects.foundation.NSMutableArray |
_ensureCapacity, _initializeWithCapacity, _setCount, add, add, addAll, addAll, clear, ensureCapacity, iterator, listIterator, listIterator, remove, remove, removeAll, removeRange, replaceObjectAtIndex, retainAll, set, subList, toArray, trimToSize |
Methods inherited from class com.webobjects.foundation.NSArray |
_mustRecomputeHash, _mutableComponentsSeparatedByString, _objects, _setMustRecomputeHash, _setObjects, componentsSeparatedByString, contains, containsAll, decodeObject, emptyArray, get, getObjects, getObjects, indexOf, isEmpty, lastIndexOf, operatorForKey, operatorNames, removeOperatorForKey, setOperatorForKey, size, sortedArrayUsingSelector, toArray |
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, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
ERXMutableArray.ThreadSafeArray
public ERXMutableArray.ThreadSafeArray(com.webobjects.foundation.NSArray<? extends V> array)
_moveObjectAtIndexToIndex
public void _moveObjectAtIndexToIndex(int sourceIndex,
int destIndex)
- Overrides:
_moveObjectAtIndexToIndex
in class com.webobjects.foundation.NSMutableArray<V>
addObject
public void addObject(V object)
- Overrides:
addObject
in class com.webobjects.foundation.NSMutableArray<V>
addObjects
public void addObjects(V... objects)
- Overrides:
addObjects
in class com.webobjects.foundation.NSMutableArray<V>
addObjectsFromArray
public void addObjectsFromArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
- Overrides:
addObjectsFromArray
in class com.webobjects.foundation.NSMutableArray<V>
clone
public java.lang.Object clone()
- Overrides:
clone
in class com.webobjects.foundation.NSMutableArray<V>
immutableClone
public com.webobjects.foundation.NSArray<V> immutableClone()
- Overrides:
immutableClone
in class com.webobjects.foundation.NSMutableArray<V>
insertObjectAtIndex
public void insertObjectAtIndex(V object,
int index)
- Overrides:
insertObjectAtIndex
in class com.webobjects.foundation.NSMutableArray<V>
removeAllObjects
public void removeAllObjects()
- Overrides:
removeAllObjects
in class com.webobjects.foundation.NSMutableArray<V>
removeIdenticalObject
public boolean removeIdenticalObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
- Overrides:
removeIdenticalObject
in class com.webobjects.foundation.NSMutableArray<V>
removeIdenticalObject
public boolean removeIdenticalObject(java.lang.Object object)
- Overrides:
removeIdenticalObject
in class com.webobjects.foundation.NSMutableArray<V>
removeLastObject
public V removeLastObject()
- Overrides:
removeLastObject
in class com.webobjects.foundation.NSMutableArray<V>
removeObject
public boolean removeObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
- Overrides:
removeObject
in class com.webobjects.foundation.NSMutableArray<V>
removeObject
public boolean removeObject(java.lang.Object object)
- Overrides:
removeObject
in class com.webobjects.foundation.NSMutableArray<V>
removeObjectAtIndex
public V removeObjectAtIndex(int index)
- Overrides:
removeObjectAtIndex
in class com.webobjects.foundation.NSMutableArray<V>
removeObjects
public void removeObjects(java.lang.Object... objects)
- Description copied from class:
com.webobjects.foundation.NSMutableArray
- Much faster implementation of the remove method for larger arrays.
- Overrides:
removeObjects
in class com.webobjects.foundation.NSMutableArray<V>
removeObjectsInArray
public void removeObjectsInArray(com.webobjects.foundation.NSArray<?> otherArray)
- Overrides:
removeObjectsInArray
in class com.webobjects.foundation.NSMutableArray<V>
removeObjectsInRange
public void removeObjectsInRange(com.webobjects.foundation.NSRange range)
- Overrides:
removeObjectsInRange
in class com.webobjects.foundation.NSMutableArray<V>
replaceObjectAtIndex
public V replaceObjectAtIndex(V object,
int index)
- Description copied from class:
com.webobjects.foundation.NSMutableArray
- Clears the objectsNoCopy too. It's wrong not to clear it.
- Overrides:
replaceObjectAtIndex
in class com.webobjects.foundation.NSMutableArray<V>
replaceObjectsInRange
public void replaceObjectsInRange(com.webobjects.foundation.NSRange range,
com.webobjects.foundation.NSArray<? extends V> otherArray,
com.webobjects.foundation.NSRange otherRange)
- Overrides:
replaceObjectsInRange
in class com.webobjects.foundation.NSMutableArray<V>
setArray
public void setArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
- Overrides:
setArray
in class com.webobjects.foundation.NSMutableArray<V>
sortUsingComparator
public void sortUsingComparator(com.webobjects.foundation.NSComparator comparator)
throws com.webobjects.foundation.NSComparator.ComparisonException
- Overrides:
sortUsingComparator
in class com.webobjects.foundation.NSMutableArray<V>
- Throws:
com.webobjects.foundation.NSComparator.ComparisonException
_shallowHashCode
public int _shallowHashCode()
- Specified by:
_shallowHashCode
in interface com.webobjects.foundation._NSFoundationCollection
- Overrides:
_shallowHashCode
in class com.webobjects.foundation.NSArray<V>
arrayByAddingObject
public com.webobjects.foundation.NSArray<V> arrayByAddingObject(V object)
- Overrides:
arrayByAddingObject
in class com.webobjects.foundation.NSArray<V>
arrayByAddingObjectsFromArray
public com.webobjects.foundation.NSArray<V> arrayByAddingObjectsFromArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
- Overrides:
arrayByAddingObjectsFromArray
in class com.webobjects.foundation.NSArray<V>
arrayList
public java.util.ArrayList<V> arrayList()
- Overrides:
arrayList
in class com.webobjects.foundation.NSArray<V>
classForCoder
public java.lang.Class classForCoder()
- Specified by:
classForCoder
in interface com.webobjects.foundation.NSCoding
- Overrides:
classForCoder
in class com.webobjects.foundation.NSArray<V>
componentsJoinedByString
public java.lang.String componentsJoinedByString(java.lang.String separator)
- Overrides:
componentsJoinedByString
in class com.webobjects.foundation.NSArray<V>
containsObject
public boolean containsObject(java.lang.Object object)
- Overrides:
containsObject
in class com.webobjects.foundation.NSArray<V>
count
public int count()
- Overrides:
count
in class com.webobjects.foundation.NSMutableArray<V>
encodeWithCoder
public void encodeWithCoder(com.webobjects.foundation.NSCoder coder)
- Specified by:
encodeWithCoder
in interface com.webobjects.foundation.NSCoding
- Overrides:
encodeWithCoder
in class com.webobjects.foundation.NSArray<V>
equals
public boolean equals(java.lang.Object object)
- Specified by:
equals
in interface java.util.Collection<V>
- Specified by:
equals
in interface java.util.List<V>
- Overrides:
equals
in class com.webobjects.foundation.NSArray<V>
firstObjectCommonWithArray
public V firstObjectCommonWithArray(com.webobjects.foundation.NSArray<? extends V> otherArray)
- Overrides:
firstObjectCommonWithArray
in class com.webobjects.foundation.NSArray<V>
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Collection<V>
- Specified by:
hashCode
in interface java.util.List<V>
- Overrides:
hashCode
in class com.webobjects.foundation.NSArray<V>
indexOfIdenticalObject
public int indexOfIdenticalObject(java.lang.Object object)
- Overrides:
indexOfIdenticalObject
in class com.webobjects.foundation.NSArray<V>
indexOfIdenticalObject
public int indexOfIdenticalObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
- Overrides:
indexOfIdenticalObject
in class com.webobjects.foundation.NSArray<V>
indexOfObject
public int indexOfObject(java.lang.Object object)
- Overrides:
indexOfObject
in class com.webobjects.foundation.NSArray<V>
indexOfObject
public int indexOfObject(java.lang.Object object,
com.webobjects.foundation.NSRange range)
- Overrides:
indexOfObject
in class com.webobjects.foundation.NSArray<V>
isEqualToArray
public boolean isEqualToArray(com.webobjects.foundation.NSArray<?> otherArray)
- Overrides:
isEqualToArray
in class com.webobjects.foundation.NSArray<V>
lastObject
public V lastObject()
- Overrides:
lastObject
in class com.webobjects.foundation.NSArray<V>
makeObjectsPerformSelector
public void makeObjectsPerformSelector(com.webobjects.foundation.NSSelector selector,
java.lang.Object... parameters)
- Overrides:
makeObjectsPerformSelector
in class com.webobjects.foundation.NSArray<V>
objectAtIndex
public V objectAtIndex(int index)
- Overrides:
objectAtIndex
in class com.webobjects.foundation.NSArray<V>
objectEnumerator
public java.util.Enumeration<V> objectEnumerator()
- Overrides:
objectEnumerator
in class com.webobjects.foundation.NSArray<V>
objects
public java.lang.Object[] objects()
- Overrides:
objects
in class com.webobjects.foundation.NSArray<V>
objects
public java.lang.Object[] objects(com.webobjects.foundation.NSRange range)
- Overrides:
objects
in class com.webobjects.foundation.NSArray<V>
objectsNoCopy
protected java.lang.Object[] objectsNoCopy()
- Overrides:
objectsNoCopy
in class com.webobjects.foundation.NSMutableArray<V>
reverseObjectEnumerator
public java.util.Enumeration<V> reverseObjectEnumerator()
- Overrides:
reverseObjectEnumerator
in class com.webobjects.foundation.NSArray<V>
sortedArrayUsingComparator
public com.webobjects.foundation.NSArray<V> sortedArrayUsingComparator(com.webobjects.foundation.NSComparator comparator)
throws com.webobjects.foundation.NSComparator.ComparisonException
- Overrides:
sortedArrayUsingComparator
in class com.webobjects.foundation.NSArray<V>
- Throws:
com.webobjects.foundation.NSComparator.ComparisonException
subarrayWithRange
public com.webobjects.foundation.NSArray<V> subarrayWithRange(com.webobjects.foundation.NSRange range)
- Overrides:
subarrayWithRange
in class com.webobjects.foundation.NSArray<V>
takeValueForKey
public void takeValueForKey(java.lang.Object value,
java.lang.String key)
- Specified by:
takeValueForKey
in interface com.webobjects.foundation.NSKeyValueCoding
- Overrides:
takeValueForKey
in class com.webobjects.foundation.NSArray<V>
takeValueForKeyPath
public void takeValueForKeyPath(java.lang.Object value,
java.lang.String keyPath)
- Specified by:
takeValueForKeyPath
in interface com.webobjects.foundation.NSKeyValueCodingAdditions
- Overrides:
takeValueForKeyPath
in class com.webobjects.foundation.NSArray<V>
toString
public java.lang.String toString()
- Overrides:
toString
in class com.webobjects.foundation.NSArray<V>
valueForKey
public java.lang.Object valueForKey(java.lang.String key)
- Specified by:
valueForKey
in interface com.webobjects.foundation.NSKeyValueCoding
- Overrides:
valueForKey
in class com.webobjects.foundation.NSArray<V>
valueForKeyPath
public java.lang.Object valueForKeyPath(java.lang.String keyPath)
- Specified by:
valueForKeyPath
in interface com.webobjects.foundation.NSKeyValueCodingAdditions
- Overrides:
valueForKeyPath
in class com.webobjects.foundation.NSArray<V>
vector
public java.util.Vector<V> vector()
- Overrides:
vector
in class com.webobjects.foundation.NSArray<V>
Copyright © 2002 – 2007 Project Wonder.