Package banner.util
Class UnmodifiableArraySet<E>
- java.lang.Object
-
- banner.util.UnmodifiableArraySet<E>
-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
public class UnmodifiableArraySet<E> extends Object implements Set<E>
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableArraySet(Set<? extends E> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(E arg0)booleanaddAll(Collection<? extends E> arg0)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanisEmpty()Iterator<E>iterator()booleanremove(Object arg0)booleanremoveAll(Collection<?> arg0)booleanretainAll(Collection<?> arg0)intsize()Object[]toArray()<T> T[]toArray(T[] arg0)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
add
public boolean add(E arg0)
-
addAll
public boolean addAll(Collection<? extends E> arg0)
-
clear
public void clear()
-
remove
public boolean remove(Object arg0)
-
removeAll
public boolean removeAll(Collection<?> arg0)
-
retainAll
public boolean retainAll(Collection<?> arg0)
-
toArray
public Object[] toArray()
-
-