E
- The element type of the Listpublic final class MyListSet<E>
extends java.lang.Object
implements java.util.Set<E>
Constructor and Description |
---|
MyListSet()
Creates the MyListSet
|
MyListSet(java.util.Collection<E> contents)
Creates the MyListSet
|
MyListSet(java.util.Set<E> entrySet)
Creates the MyReadOnlyEntrySet
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
boolean |
equalsSet(java.util.Set<?> obj)
Checks whether this set equals the given set.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
public MyListSet()
public MyListSet(java.util.Collection<E> contents)
contents
- -public MyListSet(java.util.Set<E> entrySet)
entrySet
- -public boolean add(E e)
public boolean addAll(java.util.Collection<? extends E> c)
public void clear()
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean equals(java.lang.Object obj)
public boolean equalsSet(java.util.Set<?> obj)
obj
- A set to be compared for equality with this one.public int hashCode()
public boolean isEmpty()
public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public int size()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public java.lang.String toString()
toString
in class java.lang.Object