jfreerails.world.common
Class ImSet<E extends FreerailsSerializable>

java.lang.Object
  extended by jfreerails.world.common.ImSet<E>
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public final class ImSet<E extends FreerailsSerializable>
extends java.lang.Object
implements FreerailsSerializable

An immutable set.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  java.util.HashSet<E> hashSet
           
private static long serialVersionUID
           
 
Constructor Summary
ImSet(java.util.Set<E> data)
           
 
Method Summary
 boolean contains(E element)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

hashSet

private final java.util.HashSet<E extends FreerailsSerializable> hashSet
Constructor Detail

ImSet

public ImSet(java.util.Set<E> data)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

contains

public boolean contains(E element)