ComponentUtils

open class ComponentUtils

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open fun hasEquivalentFields(obj1: Any, obj2: Any): Boolean
Given two object instances of the same type, this method accesses all their internal fields, to check if they are equivalent.
Link copied to clipboard
open fun hasEquivalentState(@Nullable stateContainer1: StateContainer, @Nullable stateContainer2: StateContainer): Boolean
Link copied to clipboard
open fun isEquivalent(@Nullable current: Component, @Nullable next: Component): Boolean
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.
Link copied to clipboard
Link copied to clipboard
Reraise an error event up the hierarchy so it can be caught by another component, or reach the root and cause the application to crash.
Link copied to clipboard
Uses the given ComponentTree to add metadata to a wrapper exception (if the wrapper doesn't already exist) and return it.
Uses the given ComponentContext to add metadata to a wrapper exception (if the wrapper doesn't already exist) and return it.