harpoon.IR.Quads
Class HandlerSet

java.lang.Object
  extended by harpoon.IR.Quads.HandlerSet

public final class HandlerSet
extends Object

A HandlerSet is a linked list of handlers, for purposes of comparison. See the equals() method. Used by both Translate and Print.

Version:
$Id: HandlerSet.java,v 1.6 2004/02/08 01:55:25 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Method Summary
static boolean contains(HandlerSet hs, HANDLER h)
          Determines if a given HandlerSet contains a given HANDLER.
static Enumeration elements(HandlerSet hs)
          Deprecated. Use iterator(hs) instead.
static boolean equals(HandlerSet h1, HandlerSet h2)
          Determines if two HandlerSets are equal.
 boolean equals(Object o)
          Determines if an object is equal to this HandlerSet.
 int hashCode()
          Computes a hashcode for this HandlerSet.
static Iterator iterator(HandlerSet hs)
          Returns an iterator over the HANDLERs in the given HandlerSet.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public final boolean equals(Object o)
Determines if an object is equal to this HandlerSet.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Computes a hashcode for this HandlerSet.

Overrides:
hashCode in class Object

equals

public static final boolean equals(HandlerSet h1,
                                   HandlerSet h2)
Determines if two HandlerSets are equal.


elements

public static final Enumeration elements(HandlerSet hs)
Deprecated. Use iterator(hs) instead.

Returns an enumeration of the HANDLERs in the given HandlerSet.


iterator

public static final Iterator iterator(HandlerSet hs)
Returns an iterator over the HANDLERs in the given HandlerSet.


contains

public static final boolean contains(HandlerSet hs,
                                     HANDLER h)
Determines if a given HandlerSet contains a given HANDLER.