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:
- Iterable<E>, Collection<E>, 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.
CollectionUtils.LenientCompositeSet
protected CollectionUtils.LenientCompositeSet()
size
public int size()
- Specified by:
size in interface Collection<E>- Specified by:
size in interface Set<E>- Overrides:
size in class CollectionUtils.CompositeCollection<E>
iterator
public Iterator<E> iterator()
- Specified by:
iterator in interface Iterable<E>- Specified by:
iterator in interface Collection<E>- Specified by:
iterator in interface Set<E>- Overrides:
iterator in class CollectionUtils.CompositeCollection<E>
add
public boolean add(E e)
- Specified by:
add in interface Collection<E>- Specified by:
add in interface Set<E>- Overrides:
add in class CollectionUtils.CompositeCollection<E>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<E>- Specified by:
remove in interface Set<E>- Overrides:
remove in class CollectionUtils.CompositeCollection<E>
addAll
public boolean addAll(Collection<? extends E> c)
- Specified by:
addAll in interface Collection<E>- Specified by:
addAll in interface Set<E>- Overrides:
addAll in class CollectionUtils.CompositeCollection<E>
hashCode
public int hashCode()
- Implement Set-defined equals behavior
- Specified by:
hashCode in interface Collection<E>- Specified by:
hashCode in interface Set<E>- Overrides:
hashCode in class CollectionUtils.CompositeSet<E>
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.