net.sf.webmancer.util.immutable
Class ImmutableSet<T>
java.lang.Object
net.sf.webmancer.util.immutable.ImmutableSet<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.Set<T>
public final class ImmutableSet<T>
- extends java.lang.Object
- implements java.util.Set<T>
- Author:
- Michal Burda
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ImmutableSet
public ImmutableSet(java.util.Set<? extends T> set)
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll
in interface java.util.Collection<T>
- Specified by:
containsAll
in interface java.util.Set<T>
- See Also:
Set.containsAll(java.util.Collection)
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Collection<T>
- Specified by:
contains
in interface java.util.Set<T>
- See Also:
Set.contains(java.lang.Object)
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Collection<T>
- Specified by:
equals
in interface java.util.Set<T>
- Overrides:
equals
in class java.lang.Object
- See Also:
Set.equals(java.lang.Object)
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Collection<T>
- Specified by:
hashCode
in interface java.util.Set<T>
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Set.hashCode()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<T>
- Specified by:
isEmpty
in interface java.util.Set<T>
- See Also:
Set.isEmpty()
size
public int size()
- Specified by:
size
in interface java.util.Collection<T>
- Specified by:
size
in interface java.util.Set<T>
- See Also:
Set.size()
toArray
public <K> K[] toArray(K[] a)
- Specified by:
toArray
in interface java.util.Collection<T>
- Specified by:
toArray
in interface java.util.Set<T>
- See Also:
java.util.Set#toArray(T[])
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection<T>
- Specified by:
toArray
in interface java.util.Set<T>
- See Also:
Set.toArray()
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T>
- Specified by:
iterator
in interface java.util.Collection<T>
- Specified by:
iterator
in interface java.util.Set<T>
- See Also:
Set.iterator()
add
public boolean add(T o)
- Specified by:
add
in interface java.util.Collection<T>
- Specified by:
add
in interface java.util.Set<T>
- See Also:
java.util.Set#add(E)
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection<T>
- Specified by:
remove
in interface java.util.Set<T>
- See Also:
Set.remove(java.lang.Object)
addAll
public boolean addAll(java.util.Collection<? extends T> c)
- Specified by:
addAll
in interface java.util.Collection<T>
- Specified by:
addAll
in interface java.util.Set<T>
- See Also:
Set.addAll(java.util.Collection)
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll
in interface java.util.Collection<T>
- Specified by:
retainAll
in interface java.util.Set<T>
- See Also:
Set.retainAll(java.util.Collection)
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll
in interface java.util.Collection<T>
- Specified by:
removeAll
in interface java.util.Set<T>
- See Also:
Set.removeAll(java.util.Collection)
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<T>
- Specified by:
clear
in interface java.util.Set<T>
- See Also:
Set.clear()
Copyright © 2006-2007. All Rights Reserved.