abbot.util
Class ExtendedComparator

java.lang.Object
  extended by abbot.util.ExtendedComparator

public class ExtendedComparator
extends Object

Utility class to perform comparisons.


Method Summary
static boolean equals(Object obj1, Object obj2)
          Perform element-by-element comparisons of arrays in addition to regular comparisons.
static boolean stringsMatch(String pattern, String actual)
          Match with a regexp if the pattern contains a ".*" or is bounded by slashes (/regexp/).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stringsMatch

public static boolean stringsMatch(String pattern,
                                   String actual)
Match with a regexp if the pattern contains a ".*" or is bounded by slashes (/regexp/). Multiline matches are enabled by /(?m)regexp/. Embedded newlines ("\n") in the match string will then match end-of-lines.


equals

public static boolean equals(Object obj1,
                             Object obj2)
Perform element-by-element comparisons of arrays in addition to regular comparisons.



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge