mark.core.util
Class Util

java.lang.Object
  |
  +--mark.core.util.Util

public class Util
extends java.lang.Object

Contains some utility routines.


Constructor Summary
Util()
           
 
Method Summary
static boolean equals(java.lang.Object o1, java.lang.Object o2)
          Recursively determines whether two elements are equal.
static java.lang.String toString(java.lang.Object o)
          Converts an object to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

toString

public static java.lang.String toString(java.lang.Object o)
Converts an object to a string. If the object is a linked list, then it processes the list recursively. Otherwise, it converts using toString ().

Parameters:
o - the object to convert.
Returns:
the string.

equals

public static boolean equals(java.lang.Object o1,
                             java.lang.Object o2)
Recursively determines whether two elements are equal. The elements can be nested lists of elements.

Returns:
whether the two are equal.