Class SetAdapater<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.github.andrewoma.dexx.collection.internal.adapter.SetAdapater<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
- Direct Known Subclasses:
SortedSetAdapter
public class SetAdapater<E> extends java.util.AbstractSet<E>
-
-
Constructor Summary
Constructors Constructor Description SetAdapater(Set<E> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E e)
boolean
addAll(@NotNull java.util.Collection<? extends E> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(@NotNull java.util.Collection<?> c)
boolean
isEmpty()
@NotNull java.util.Iterator<E>
iterator()
boolean
remove(java.lang.Object o)
boolean
removeAll(@NotNull java.util.Collection<?> c)
boolean
retainAll(@NotNull java.util.Collection<?> c)
int
size()
@NotNull java.lang.Object[]
toArray()
<T> @NotNull T[]
toArray(@NotNull T[] a)
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
@NotNull public @NotNull java.util.Iterator<E> iterator()
-
toArray
@NotNull public @NotNull java.lang.Object[] toArray()
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a)
-
add
public boolean add(E e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(@NotNull @NotNull java.util.Collection<?> c)
-
addAll
public boolean addAll(@NotNull @NotNull java.util.Collection<? extends E> c)
-
retainAll
public boolean retainAll(@NotNull @NotNull java.util.Collection<?> c)
-
removeAll
public boolean removeAll(@NotNull @NotNull java.util.Collection<?> c)
-
-