edu.rice.cs.plt.collect
Class EmptySet<E>

java.lang.Object
  extended by edu.rice.cs.plt.collect.EmptyCollection<E>
      extended by edu.rice.cs.plt.collect.EmptySet<E>
All Implemented Interfaces:
PredicateSet<E>, SizedIterable<E>, Predicate<java.lang.Object>, java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>

public class EmptySet<E>
extends EmptyCollection<E>
implements PredicateSet<E>, java.io.Serializable

An immutable empty PredicateSet.

See Also:
Serialized Form

Field Summary
static EmptySet<java.lang.Object> INSTANCE
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static
<T> EmptySet<T>
make()
          Return a singleton, cast to the appropriate type.
 
Methods inherited from class edu.rice.cs.plt.collect.EmptyCollection
add, addAll, clear, contains, containsAll, hasFixedSize, isEmpty, isInfinite, isStatic, iterator, remove, removeAll, retainAll, size, 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
 
Methods inherited from interface edu.rice.cs.plt.lambda.Predicate
contains
 
Methods inherited from interface edu.rice.cs.plt.iter.SizedIterable
hasFixedSize, isEmpty, isInfinite, isStatic, size, size
 

Field Detail

INSTANCE

public static final EmptySet<java.lang.Object> INSTANCE
Method Detail

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection<E>
Specified by:
equals in interface java.util.Set<E>
Specified by:
equals in class EmptyCollection<E>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<E>
Specified by:
hashCode in interface java.util.Set<E>
Specified by:
hashCode in class EmptyCollection<E>

make

public static <T> EmptySet<T> make()
Return a singleton, cast to the appropriate type.