org.jboss.osgi.framework.util
Class RemoveOnlyCollection<T>
java.lang.Object
org.jboss.osgi.framework.util.RemoveOnlyCollection<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>
public class RemoveOnlyCollection<T>
- extends Object
- implements Collection<T>
A Collection that does not allow add operations.
- Since:
- 21-MAr-2010
- Author:
- thomas.diesler@jboss.com
RemoveOnlyCollection
public RemoveOnlyCollection(Collection<T> delegate)
size
public int size()
- Specified by:
size in interface Collection<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection<T>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>- Specified by:
iterator in interface Collection<T>
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection<T>
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray in interface Collection<T>
add
public boolean add(Object e)
- Specified by:
add in interface Collection<T>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<T>
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll in interface Collection<T>
addAll
public boolean addAll(Collection c)
- Specified by:
addAll in interface Collection<T>
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll in interface Collection<T>
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll in interface Collection<T>
clear
public void clear()
- Specified by:
clear in interface Collection<T>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<T>- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals in interface Collection<T>- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.