Collections are now copyable
This commit is contained in:
@@ -128,6 +128,9 @@ public class COLLECTIONS
|
||||
return c.iterator();
|
||||
}
|
||||
|
||||
@Override
|
||||
public COLLECTION KEY_GENERIC_TYPE copy() { throw new UnsupportedOperationException(); }
|
||||
|
||||
@Override
|
||||
@Primitive
|
||||
public boolean remove(Object o) { synchronized(mutex) { return c.remove(o); } }
|
||||
@@ -222,6 +225,8 @@ public class COLLECTIONS
|
||||
@Override
|
||||
public ITERATOR KEY_GENERIC_TYPE iterator() { return ITERATORS.unmodifiable(c.iterator()); }
|
||||
@Override
|
||||
public COLLECTION KEY_GENERIC_TYPE copy() { throw new UnsupportedOperationException(); }
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean remove(Object o) { throw new UnsupportedOperationException(); }
|
||||
@Override
|
||||
@@ -358,5 +363,7 @@ public class COLLECTIONS
|
||||
public void clear() {}
|
||||
@Override
|
||||
public int size() { return 0; }
|
||||
@Override
|
||||
public EmptyCollection KEY_GENERIC_TYPE copy() { return this; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user