@Override public U get(int index) { checkIndex(index); return (U) array.getObjectAt(index); }
@Override public U remove(int index) { checkIndex(index); U old = (U) array.getObjectAt(index); ((NSMutableArray<U>) array).removeObject(index); return old; } }
@Override public U set(int index, U element) { checkNull(element); checkIndex(index); U old = (U) array.getObjectAt(index); ((NSMutableArray<U>) array).replaceObject(index, element); return old; }
public boolean containsValue(Object value) { if (!(value instanceof NSObject)) { return false; } NSArray<V> values = getAllValues(); int count = (int) values.getCount(); for (int i = 0; i < count; i++) { NSObject o = values.getObjectAt(i); if (o.equals(value)) { return true; } } return false; } public Set<Map.Entry<K, V>> entrySet() {
public boolean containsValue(Object value) { if (!(value instanceof NSObject)) { return false; } NSArray<V> values = getObjectEnumerator().getAllObjects(); int count = (int) values.getCount(); for (int i = 0; i < count; i++) { NSObject o = values.getObjectAt(i); if (o.equals(value)) { return true; } } return false; } public Set<Map.Entry<K, V>> entrySet() {
@Override public U get(int index) { checkIndex(index); return (U) array.getObjectAt(index); }
@Override public U get(int index) { checkIndex(index); return (U) array.getObjectAt(index); }
@Override public U remove(int index) { checkIndex(index); U old = (U) array.getObjectAt(index); ((NSMutableArray<U>) array).removeObject(index); return old; } }
@Override public U remove(int index) { checkIndex(index); U old = (U) array.getObjectAt(index); ((NSMutableArray<U>) array).removeObject(index); return old; } }
@Override public U set(int index, U element) { checkNull(element); checkIndex(index); U old = (U) array.getObjectAt(index); ((NSMutableArray<U>) array).replaceObject(index, element); return old; }
@Override public U set(int index, U element) { checkNull(element); checkIndex(index); U old = (U) array.getObjectAt(index); ((NSMutableArray<U>) array).replaceObject(index, element); return old; }
public boolean containsValue(Object value) { if (!(value instanceof NSObject)) { return false; } NSArray<V> values = getAllValues(); int count = (int) values.getCount(); for (int i = 0; i < count; i++) { NSObject o = values.getObjectAt(i); if (o.equals(value)) { return true; } } return false; } public Set<Map.Entry<K, V>> entrySet() {
public boolean containsValue(Object value) { if (!(value instanceof NSObject)) { return false; } NSArray<V> values = getAllValues(); int count = (int) values.getCount(); for (int i = 0; i < count; i++) { NSObject o = values.getObjectAt(i); if (o.equals(value)) { return true; } } return false; } public Set<Map.Entry<K, V>> entrySet() {
public boolean containsValue(Object value) { if (!(value instanceof NSObject)) { return false; } NSArray<V> values = getObjectEnumerator().getAllObjects(); int count = (int) values.getCount(); for (int i = 0; i < count; i++) { NSObject o = values.getObjectAt(i); if (o.equals(value)) { return true; } } return false; } public Set<Map.Entry<K, V>> entrySet() {
public boolean containsValue(Object value) { if (!(value instanceof NSObject)) { return false; } NSArray<V> values = getObjectEnumerator().getAllObjects(); int count = (int) values.getCount(); for (int i = 0; i < count; i++) { NSObject o = values.getObjectAt(i); if (o.equals(value)) { return true; } } return false; } public Set<Map.Entry<K, V>> entrySet() {