mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +00:00
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
This commit is contained in:
commit
dc52bae1cf
@ -15,22 +15,11 @@ package java.util;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractCollection<T> implements Collection<T> {
|
public abstract class AbstractCollection<T> implements Collection<T> {
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#add(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean add(T element) {
|
public boolean add(T element) {
|
||||||
throw new UnsupportedOperationException("adding to "
|
throw new UnsupportedOperationException("adding to "
|
||||||
+ this.getClass().getName());
|
+ this.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#addAll(java.util.Collection)
|
|
||||||
*/
|
|
||||||
public boolean addAll(Collection<? extends T> collection) {
|
public boolean addAll(Collection<? extends T> collection) {
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
for (T obj : collection) {
|
for (T obj : collection) {
|
||||||
@ -39,21 +28,11 @@ public abstract class AbstractCollection<T> implements Collection<T> {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#clear()
|
|
||||||
*/
|
|
||||||
public void clear() {
|
public void clear() {
|
||||||
throw new UnsupportedOperationException("clear() in "
|
throw new UnsupportedOperationException("clear() in "
|
||||||
+ this.getClass().getName());
|
+ this.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#contains(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean contains(T element) {
|
public boolean contains(T element) {
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
for (Iterator<T> iter = iterator(); iter.hasNext();) {
|
for (Iterator<T> iter = iterator(); iter.hasNext();) {
|
||||||
@ -72,37 +51,17 @@ public abstract class AbstractCollection<T> implements Collection<T> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#isEmpty()
|
|
||||||
*/
|
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return size() == 0;
|
return size() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#remove(java.lang.Object)
|
|
||||||
*/
|
|
||||||
public boolean remove(T element) {
|
public boolean remove(T element) {
|
||||||
throw new UnsupportedOperationException("remove(T) in "
|
throw new UnsupportedOperationException("remove(T) in "
|
||||||
+ this.getClass().getName());
|
+ this.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#size()
|
|
||||||
*/
|
|
||||||
public abstract int size();
|
public abstract int size();
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see java.util.Collection#toArray(S[])
|
|
||||||
*/
|
|
||||||
public <S> S[] toArray(S[] array) {
|
public <S> S[] toArray(S[] array) {
|
||||||
return Collections.toArray(this, array);
|
return Collections.toArray(this, array);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user