|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.util.ObjectUtils
public class ObjectUtils
Object comparison and hashing utilities.
Nested Class Summary | |
---|---|
static class |
ObjectUtils.HashCode
Hash code creator for objects. |
Constructor Summary | |
---|---|
ObjectUtils()
|
Method Summary | ||
---|---|---|
static boolean |
equals(boolean b1,
boolean b2)
Determines whether two boolean values are equal. |
|
static
|
equals(java.lang.Enum<T> o1,
java.lang.Enum<T> o2)
Determines whether two enum values are equal. |
|
static boolean |
equals(int i1,
int i2)
Determines whether two integer values are equal. |
|
static boolean |
equals(JRPropertiesMap p1,
JRPropertiesMap p2)
Determines whether two property sets are identical. |
|
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Determines whether two objects are equal, including null values. |
|
static boolean |
equalsIdentity(java.lang.Object o1,
java.lang.Object o2)
Determines whether two objects are the same as instances. |
|
static ObjectUtils.HashCode |
hash()
Returns a fresh hash code creator. |
|
static boolean |
identical(java.util.List<?> l1,
java.util.List<?> l2)
Determines whether two lists of objects are identical. |
|
static boolean |
identical(java.lang.Object[] v1,
java.lang.Object[] v2)
Determines whether two arrays of objects are identical. |
|
static boolean |
identical(java.lang.Object o1,
java.lang.Object o2)
Determines whether two objects are identical. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectUtils()
Method Detail |
---|
public static ObjectUtils.HashCode hash()
public static boolean equalsIdentity(java.lang.Object o1, java.lang.Object o2)
o1
- o2
-
public static boolean identical(java.lang.Object o1, java.lang.Object o2)
Deduplicable
, the deduplication method
is used to compare the objects. Otherwise, Object.equals
is used.
o1
- o2
-
public static boolean identical(java.lang.Object[] v1, java.lang.Object[] v2)
v1
- v2
-
identical(Object, Object)
public static boolean identical(java.util.List<?> l1, java.util.List<?> l2)
l1
- l2
-
identical(Object, Object)
public static boolean equals(java.lang.Object o1, java.lang.Object o2)
null
values.
o1
- o2
-
public static <T extends java.lang.Enum<T>> boolean equals(java.lang.Enum<T> o1, java.lang.Enum<T> o2)
o1
- o2
-
public static boolean equals(boolean b1, boolean b2)
b1
- b2
-
public static boolean equals(int i1, int i2)
i1
- i2
-
public static boolean equals(JRPropertiesMap p1, JRPropertiesMap p2)
p1
- p2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |