public static class ERXMutableArray.ThreadSafeArray<V> extends ERXMutableArray<V>
ERXMutableArray.synchronizedArray();
instead and we will fix all the bugs in due time.ERXMutableArray.ThreadSafeArray<V>
NSArray._AvgNumberOperator, NSArray._CountOperator, NSArray._MaxOperator, NSArray._MinOperator, NSArray._Operator, NSArray._SumNumberOperator, NSArray.Operator
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
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
_capacity, _CLASS, _count, _objectsCache, ERX_MARKER, modCount
_hashCache, _NSArrayClassHashCode, _objects, AverageOperatorName, CheckForNull, CountOperatorName, EmptyArray, IgnoreNull, MaximumOperatorName, MinimumOperatorName, NotFound, SumOperatorName
Constructor and Description |
---|
ThreadSafeArray(NSArray<? extends V> array) |
Modifier and Type | Method and Description |
---|---|
void |
_moveObjectAtIndexToIndex(int sourceIndex,
int destIndex) |
int |
_shallowHashCode() |
void |
addObject(Object object) |
void |
addObjects(Object... objects) |
void |
addObjectsFromArray(NSArray<? extends V> otherArray) |
NSArray<V> |
arrayByAddingObject(V object) |
NSArray<V> |
arrayByAddingObjectsFromArray(NSArray<? extends V> otherArray) |
ArrayList<V> |
arrayList() |
Class |
classForCoder() |
Object |
clone() |
String |
componentsJoinedByString(String separator) |
boolean |
containsObject(Object object) |
int |
count() |
void |
encodeWithCoder(com.webobjects.foundation.NSCoder coder) |
boolean |
equals(Object object) |
V |
firstObjectCommonWithArray(NSArray<?> otherArray) |
int |
hashCode() |
NSArray<V> |
immutableClone() |
int |
indexOfIdenticalObject(Object object) |
int |
indexOfIdenticalObject(Object object,
com.webobjects.foundation.NSRange range) |
int |
indexOfObject(Object object) |
int |
indexOfObject(Object object,
com.webobjects.foundation.NSRange range) |
void |
insertObjectAtIndex(V object,
int index) |
boolean |
isEqualToArray(NSArray otherArray) |
V |
lastObject() |
void |
makeObjectsPerformSelector(com.webobjects.foundation.NSSelector selector,
Object... parameters) |
V |
objectAtIndex(int index) |
Enumeration<V> |
objectEnumerator() |
V[] |
objects() |
Object[] |
objects(com.webobjects.foundation.NSRange range) |
protected V[] |
objectsNoCopy() |
void |
removeAllObjects() |
boolean |
removeIdenticalObject(Object object) |
boolean |
removeIdenticalObject(Object object,
com.webobjects.foundation.NSRange range) |
V |
removeLastObject() |
boolean |
removeObject(Object object) |
boolean |
removeObject(Object object,
com.webobjects.foundation.NSRange range) |
V |
removeObjectAtIndex(int index) |
void |
removeObjects(Object... objects)
Much faster implementation of the remove method for larger arrays.
|
void |
removeObjectsInArray(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,
NSArray otherArray,
com.webobjects.foundation.NSRange otherRange) |
Enumeration<V> |
reverseObjectEnumerator() |
void |
setArray(NSArray<? extends V> otherArray) |
NSArray<V> |
sortedArrayUsingComparator(com.webobjects.foundation.NSComparator comparator) |
void |
sortUsingComparator(com.webobjects.foundation.NSComparator comparator) |
NSArray<V> |
subarrayWithRange(com.webobjects.foundation.NSRange range) |
void |
takeValueForKey(Object value,
String key) |
void |
takeValueForKeyPath(Object value,
String keyPath) |
String |
toString() |
Object |
valueForKey(String key) |
Object |
valueForKeyPath(String keyPath) |
Vector<V> |
vector() |
fromBlob, fromPropertyList, mutableClone, synchronizedArray, synchronizedArray, synchronizedArray, toBlob, toBlob, toBlob, toPropertyList, toPropertyList, toStringArray
_ensureCapacity, _initializeWithCapacity, _setCount, add, add, addAll, addAll, clear, ensureCapacity, iterator, listIterator, listIterator, remove, remove, removeAll, removeRange, replaceObjectAtIndex, retainAll, set, subList, toArray, trimToSize
_mustRecomputeHash, _mutableComponentsSeparatedByString, _objects, _setMustRecomputeHash, _setObjects, componentsSeparatedByString, contains, containsAll, decodeObject, emptyArray, get, getObjects, getObjects, indexOf, isEmpty, lastIndexOf, operatorForKey, operatorNames, removeOperatorForKey, setOperatorForKey, size, sortedArrayUsingSelector, toArray, valueForKey, valueForKey, valueForKeyPath
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public void _moveObjectAtIndexToIndex(int sourceIndex, int destIndex)
_moveObjectAtIndexToIndex
in class NSMutableArray<V>
public void addObject(Object object)
addObject
in class NSMutableArray<V>
public void addObjects(Object... objects)
addObjects
in class NSMutableArray<V>
public void addObjectsFromArray(NSArray<? extends V> otherArray)
addObjectsFromArray
in class NSMutableArray<V>
public Object clone()
clone
in class NSMutableArray<V>
public NSArray<V> immutableClone()
immutableClone
in class NSMutableArray<V>
public void insertObjectAtIndex(V object, int index)
insertObjectAtIndex
in class NSMutableArray<V>
public void removeAllObjects()
removeAllObjects
in class NSMutableArray<V>
public boolean removeIdenticalObject(Object object, com.webobjects.foundation.NSRange range)
removeIdenticalObject
in class NSMutableArray<V>
public boolean removeIdenticalObject(Object object)
removeIdenticalObject
in class NSMutableArray<V>
public V removeLastObject()
removeLastObject
in class NSMutableArray<V>
public boolean removeObject(Object object, com.webobjects.foundation.NSRange range)
removeObject
in class NSMutableArray<V>
public boolean removeObject(Object object)
removeObject
in class NSMutableArray<V>
public V removeObjectAtIndex(int index)
removeObjectAtIndex
in class NSMutableArray<V>
public void removeObjects(Object... objects)
NSMutableArray
removeObjects
in class NSMutableArray<V>
objects
- objects to removepublic void removeObjectsInArray(NSArray<?> otherArray)
removeObjectsInArray
in class NSMutableArray<V>
public void removeObjectsInRange(com.webobjects.foundation.NSRange range)
removeObjectsInRange
in class NSMutableArray<V>
public V replaceObjectAtIndex(V object, int index)
NSMutableArray
replaceObjectAtIndex
in class NSMutableArray<V>
object
- the replacement objectindex
- index of object to replacepublic void replaceObjectsInRange(com.webobjects.foundation.NSRange range, NSArray otherArray, com.webobjects.foundation.NSRange otherRange)
replaceObjectsInRange
in class NSMutableArray<V>
public void setArray(NSArray<? extends V> otherArray)
setArray
in class NSMutableArray<V>
public void sortUsingComparator(com.webobjects.foundation.NSComparator comparator) throws com.webobjects.foundation.NSComparator.ComparisonException
sortUsingComparator
in class NSMutableArray<V>
com.webobjects.foundation.NSComparator.ComparisonException
public int _shallowHashCode()
_shallowHashCode
in interface com.webobjects.foundation._NSFoundationCollection
_shallowHashCode
in class NSArray<V>
public NSArray<V> arrayByAddingObject(V object)
arrayByAddingObject
in class NSArray<V>
public NSArray<V> arrayByAddingObjectsFromArray(NSArray<? extends V> otherArray)
arrayByAddingObjectsFromArray
in class NSArray<V>
public Class classForCoder()
classForCoder
in interface com.webobjects.foundation.NSCoding
classForCoder
in class NSArray<V>
public String componentsJoinedByString(String separator)
componentsJoinedByString
in class NSArray<V>
public boolean containsObject(Object object)
containsObject
in class NSArray<V>
public int count()
count
in class NSMutableArray<V>
public void encodeWithCoder(com.webobjects.foundation.NSCoder coder)
encodeWithCoder
in interface com.webobjects.foundation.NSCoding
encodeWithCoder
in class NSArray<V>
public boolean equals(Object object)
public V firstObjectCommonWithArray(NSArray<?> otherArray)
firstObjectCommonWithArray
in class NSArray<V>
public int hashCode()
public int indexOfIdenticalObject(Object object)
indexOfIdenticalObject
in class NSArray<V>
public int indexOfIdenticalObject(Object object, com.webobjects.foundation.NSRange range)
indexOfIdenticalObject
in class NSArray<V>
public int indexOfObject(Object object)
indexOfObject
in class NSArray<V>
public int indexOfObject(Object object, com.webobjects.foundation.NSRange range)
indexOfObject
in class NSArray<V>
public boolean isEqualToArray(NSArray otherArray)
isEqualToArray
in class NSArray<V>
public V lastObject()
lastObject
in class NSArray<V>
public void makeObjectsPerformSelector(com.webobjects.foundation.NSSelector selector, Object... parameters)
makeObjectsPerformSelector
in class NSArray<V>
public V objectAtIndex(int index)
objectAtIndex
in class NSArray<V>
public Enumeration<V> objectEnumerator()
objectEnumerator
in class NSArray<V>
public Object[] objects(com.webobjects.foundation.NSRange range)
protected V[] objectsNoCopy()
objectsNoCopy
in class NSMutableArray<V>
public Enumeration<V> reverseObjectEnumerator()
reverseObjectEnumerator
in class NSArray<V>
public NSArray<V> sortedArrayUsingComparator(com.webobjects.foundation.NSComparator comparator) throws com.webobjects.foundation.NSComparator.ComparisonException
sortedArrayUsingComparator
in class NSArray<V>
com.webobjects.foundation.NSComparator.ComparisonException
public NSArray<V> subarrayWithRange(com.webobjects.foundation.NSRange range)
subarrayWithRange
in class NSArray<V>
public void takeValueForKey(Object value, String key)
takeValueForKey
in interface com.webobjects.foundation.NSKeyValueCoding
takeValueForKey
in class NSArray<V>
public void takeValueForKeyPath(Object value, String keyPath)
takeValueForKeyPath
in interface com.webobjects.foundation.NSKeyValueCodingAdditions
takeValueForKeyPath
in class NSArray<V>
public Object valueForKey(String key)
valueForKey
in interface com.webobjects.foundation.NSKeyValueCoding
valueForKey
in class NSArray<V>
public Object valueForKeyPath(String keyPath)
valueForKeyPath
in interface com.webobjects.foundation.NSKeyValueCodingAdditions
valueForKeyPath
in class NSArray<V>
Copyright © 2002 – 2020 Project Wonder.