public final class CompareUtils
extends java.lang.Object
| Constructor and Description |
|---|
CompareUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareNames(java.lang.String name1,
java.lang.String name2)
Compares file names insensitive to case but sensitive to integer numbers.
|
static boolean |
contains(java.lang.String text,
java.util.List<java.lang.String> tokens)
Returns whether text contains any of the tokens from the specified list or not.
|
static boolean |
equals(java.lang.Object object,
java.lang.Object... compareWith)
Returns whether the first Object equals to any Object from the specified array.
|
public static boolean equals(java.lang.Object object,
java.lang.Object... compareWith)
object - object to comparecompareWith - objects to compare withpublic static boolean contains(java.lang.String text,
java.util.List<java.lang.String> tokens)
text - text to look for tokenstokens - tokens listpublic static int compareNames(java.lang.String name1,
java.lang.String name2)
name1 - first file name to be comparedname2 - second file name to be compared