|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.utils.bean.EqualsUtils
public final class EqualsUtils
An utility class for equality test.
Method Summary | |
---|---|
static boolean |
areEqualsDirect(Object bean,
Object other,
Object... properties)
Test if the two objects are equals. |
static boolean |
areNotEquals(Object object,
Object other)
Test if 2 object are not equals. |
static boolean |
areNotSameFile(File file,
File other)
Test if 2 files are not the sames files. |
static boolean |
areObjectIncompatible(Object object,
Object other)
Test if 2 objects are incompatible for equality test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean areObjectIncompatible(Object object, Object other)
object
- The first object to test.other
- The second object to test.
public static boolean areNotEquals(Object object, Object other)
object
- The first object to test.other
- The second object to test.
public static boolean areEqualsDirect(Object bean, Object other, Object... properties)
bean
- The bean to test.other
- The other bean to test for equality with the first one.properties
- The properties to compare one by one. The properties n is compared to the property
n + (properties.length / 2). This array must be pair.
public static boolean areNotSameFile(File file, File other)
file
- The first file to test.other
- The second file to test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |