Keel 2.1RC2

org.apache.commons.collections
Class SetUtils.PredicatedSet

java.lang.Object
  extended byorg.apache.commons.collections.CollectionUtils.CollectionWrapper
      extended byorg.apache.commons.collections.CollectionUtils.PredicatedCollection
          extended byorg.apache.commons.collections.SetUtils.PredicatedSet
All Implemented Interfaces:
java.util.Collection, java.util.Set
Direct Known Subclasses:
SetUtils.PredicatedSortedSet
Enclosing class:
SetUtils

static class SetUtils.PredicatedSet
extends CollectionUtils.PredicatedCollection
implements java.util.Set


Field Summary
protected  java.util.Collection collection
           
protected  Predicate predicate
           
 
Constructor Summary
SetUtils.PredicatedSet(java.util.Set set, Predicate predicate)
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 boolean addAll(java.util.Collection c2)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection c2)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection c2)
           
 boolean retainAll(java.util.Collection c2)
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] o)
           
 java.lang.String toString()
           
protected  void validate(java.lang.Object o)
           
 
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, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

predicate

protected final Predicate predicate

collection

protected final java.util.Collection collection
Constructor Detail

SetUtils.PredicatedSet

public SetUtils.PredicatedSet(java.util.Set set,
                              Predicate predicate)
Method Detail

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection
Overrides:
add in class CollectionUtils.CollectionWrapper

addAll

public boolean addAll(java.util.Collection c2)
Specified by:
addAll in interface java.util.Collection
Overrides:
addAll in class CollectionUtils.CollectionWrapper

validate

protected void validate(java.lang.Object o)

size

public int size()
Specified by:
size in interface java.util.Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Collection

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection

toArray

public java.lang.Object[] toArray(java.lang.Object[] o)
Specified by:
toArray in interface java.util.Collection

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection

containsAll

public boolean containsAll(java.util.Collection c2)
Specified by:
containsAll in interface java.util.Collection

removeAll

public boolean removeAll(java.util.Collection c2)
Specified by:
removeAll in interface java.util.Collection

retainAll

public boolean retainAll(java.util.Collection c2)
Specified by:
retainAll in interface java.util.Collection

clear

public void clear()
Specified by:
clear in interface java.util.Collection

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection

toString

public java.lang.String toString()

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.