Class Same
- java.lang.Object
-
- io.ebeaninternal.server.expression.Same
-
-
Constructor Summary
Constructors Constructor Description Same()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
sameBy(boolean byValue, Object value, Object value1)
Null safe check by sameByValue or sameByNull based on byValue.static boolean
sameByNull(Object v1, Object v2)
Return true if both values are null or both an not null.static boolean
sameByValue(Object v1, Object v2)
Null safe equals check.static boolean
sameByValue(Collection<?> v1, Collection<?> v2)
Return true if both collections are the same by value and order is taken into account.
-
-
-
Constructor Detail
-
Same
public Same()
-
-
Method Detail
-
sameByNull
public static boolean sameByNull(Object v1, Object v2)
Return true if both values are null or both an not null.
-
sameByValue
public static boolean sameByValue(Object v1, Object v2)
Null safe equals check.
-
sameByValue
public static boolean sameByValue(Collection<?> v1, Collection<?> v2)
Return true if both collections are the same by value and order is taken into account.
-
-