public class ComponentUtils extends Object
Constructor and Description |
---|
ComponentUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasEquivalentFields(Object obj1,
Object obj2)
Given two object instances of the same type, this method accesses all their internal fields,
including the fields of StateContainer if the class type is Component, to check if they are
equivalent.
|
static boolean |
isEquivalentToIgnoringState(Component current,
Component next)
Given two components this method accesses all their internal fields, excluding the fields of
StateContainer if the class type is a Component, to check if they are equivalent.
|
static boolean |
isSameComponentType(Component a,
Component b) |
public static boolean isEquivalentToIgnoringState(Component current, Component next)
current
- current Componentnext
- next Componenttrue
iff the component fields are equivalent.public static boolean hasEquivalentFields(Object obj1, Object obj2)
obj1
- obj2
-