org.apache.myfaces.trinidad.util
Class CollectionUtils.LenientCompositeSet<E>
java.lang.Object
org.apache.myfaces.trinidad.util.CollectionUtils.CompositeCollection<E>
org.apache.myfaces.trinidad.util.CollectionUtils.CompositeSet<E>
org.apache.myfaces.trinidad.util.CollectionUtils.LenientCompositeSet<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>
- Enclosing class:
- CollectionUtils
protected abstract static class CollectionUtils.LenientCompositeSet<E>
- extends CollectionUtils.CompositeSet<E>
Live composite set where both sets are allowed to be disjoint.
|
Method Summary |
boolean |
add(E e)
|
boolean |
addAll(java.util.Collection<? extends E> c)
|
int |
hashCode()
Implement Set-defined equals behavior |
java.util.Iterator<E> |
iterator()
|
boolean |
remove(java.lang.Object o)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
clear, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray |
CollectionUtils.LenientCompositeSet
protected CollectionUtils.LenientCompositeSet()
size
public int size()
- Specified by:
size in interface java.util.Collection<E>- Specified by:
size in interface java.util.Set<E>- Overrides:
size in class CollectionUtils.CompositeCollection<E>
iterator
public java.util.Iterator<E> iterator()
- Specified by:
iterator in interface java.lang.Iterable<E>- Specified by:
iterator in interface java.util.Collection<E>- Specified by:
iterator in interface java.util.Set<E>- Overrides:
iterator in class CollectionUtils.CompositeCollection<E>
add
public boolean add(E e)
- Specified by:
add in interface java.util.Collection<E>- Specified by:
add in interface java.util.Set<E>- Overrides:
add in class CollectionUtils.CompositeCollection<E>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection<E>- Specified by:
remove in interface java.util.Set<E>- Overrides:
remove in class CollectionUtils.CompositeCollection<E>
addAll
public boolean addAll(java.util.Collection<? extends E> c)
- Specified by:
addAll in interface java.util.Collection<E>- Specified by:
addAll in interface java.util.Set<E>- Overrides:
addAll in class CollectionUtils.CompositeCollection<E>
hashCode
public int hashCode()
- Implement Set-defined equals behavior
- Specified by:
hashCode in interface java.util.Collection<E>- Specified by:
hashCode in interface java.util.Set<E>- Overrides:
hashCode in class CollectionUtils.CompositeSet<E>
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.