org.intermine.util
Class AlwaysSet

java.lang.Object
  extended by org.intermine.util.PseudoSet
      extended by org.intermine.util.AlwaysSet
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Set

public class AlwaysSet
extends PseudoSet

A Set that always returns true for the contains method.


Field Summary
static AlwaysSet INSTANCE
          public instance
 
Method Summary
 boolean contains(java.lang.Object o)
          
 boolean containsAll(java.util.Collection c)
          
 java.lang.String toString()
          
 
Methods inherited from class org.intermine.util.PseudoSet
add, addAll, clear, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Field Detail

INSTANCE

public static final AlwaysSet INSTANCE
public instance

Method Detail

contains

public boolean contains(java.lang.Object o)


containsAll

public boolean containsAll(java.util.Collection c)

Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in interface java.util.Set
Overrides:
containsAll in class PseudoSet

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object