votorola.a.election.district
Class RegionalPath.X

java.lang.Object
  extended by RegionalPath.X
Enclosing interface:
RegionalPath

public static final class RegionalPath.X
extends Object

Utilities for regional paths.


Method Summary
static boolean equals(Object o1, Object o2)
          Returns true iff o1 and o2 are paths with equal nodes.
static boolean isSuperPath(RegionalPath p1, RegionalPath p2)
          Returns true iff p1 and p2 have equal nodes until the final non-null node of p1.
static String toString(RegionalPath path)
          Returns the string 'regional path /S/D/E', where S, D and E are the node short titles, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public static boolean equals(Object o1,
                             Object o2)
Returns true iff o1 and o2 are paths with equal nodes.


isSuperPath

public static boolean isSuperPath(RegionalPath p1,
                                  RegionalPath p2)
Returns true iff p1 and p2 have equal nodes until the final non-null node of p1. In other words, the comparison stops before the first null node of p1, if any.


toString

public static String toString(RegionalPath path)
Returns the string 'regional path /S/D/E', where S, D and E are the node short titles, if any.