Skip navigation links


org.apache.myfaces.trinidad.util
Class CollectionUtils.CompositeSet<E>

java.lang.Object
  extended by org.apache.myfaces.trinidad.util.CollectionUtils.CompositeCollection<E>
      extended by org.apache.myfaces.trinidad.util.CollectionUtils.CompositeSet<E>

Type Parameters:
E -
All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>
Direct Known Subclasses:
CollectionUtils.LenientCompositeSet
Enclosing class:
CollectionUtils

protected abstract static class CollectionUtils.CompositeSet<E>
extends CollectionUtils.CompositeCollection<E>
implements java.util.Set<E>

Note: Requires contents to be disjoint!


Constructor Summary
protected CollectionUtils.CompositeSet()
           

 

Method Summary
 boolean equals(java.lang.Object o)
          Implement Set-defined equals behavior
protected abstract  java.util.Set<E> getPrimaryDelegate()
           
protected abstract  java.util.Set<E> getSecondaryDelegate()
           
 int hashCode()
          Implement Set-defined equals behavior

 

Methods inherited from class org.apache.myfaces.trinidad.util.CollectionUtils.CompositeCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray

 

Constructor Detail

CollectionUtils.CompositeSet

protected CollectionUtils.CompositeSet()

Method Detail

getPrimaryDelegate

protected abstract java.util.Set<E> getPrimaryDelegate()
Specified by:
getPrimaryDelegate in class CollectionUtils.CompositeCollection<E>

getSecondaryDelegate

protected abstract java.util.Set<E> getSecondaryDelegate()
Specified by:
getSecondaryDelegate in class CollectionUtils.CompositeCollection<E>

equals

public boolean equals(java.lang.Object o)
Implement Set-defined equals behavior
Specified by:
equals in interface java.util.Collection<E>
Specified by:
equals in interface java.util.Set<E>
Overrides:
equals in class java.lang.Object

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 java.lang.Object

Skip navigation links


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.