Package org.osgi.util.converter
Class CollectionSetDelegate<T>
- java.lang.Object
-
- org.osgi.util.converter.CollectionSetDelegate<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.Set<T>
class CollectionSetDelegate<T> extends java.lang.Object implements java.util.Set<T>
-
-
Constructor Summary
Constructors Constructor Description CollectionSetDelegate(java.util.Collection<T> coll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.Object e)
boolean
addAll(java.util.Collection<? extends T> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<T>
iterator()
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
private java.util.Set<T>
setSnapshot()
int
size()
java.lang.Object[]
toArray()
<X> X[]
toArray(X[] a)
java.lang.String
toString()
-
-
-
Field Detail
-
delegate
private final java.util.Collection<T> delegate
-
-
Constructor Detail
-
CollectionSetDelegate
CollectionSetDelegate(java.util.Collection<T> coll)
-
-
Method Detail
-
setSnapshot
private java.util.Set<T> setSnapshot()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<T> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <X> X[] toArray(X[] a)
-
add
public boolean add(java.lang.Object e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends T> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
clear
public void clear()
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object obj)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-