Package io.jmix.flowui.observation
Record Class FragmentObservationInfo
java.lang.Object
java.lang.Record
io.jmix.flowui.observation.FragmentObservationInfo
- Record Components:
fragmentId- id of the fragmentfragmentClass- FQN of the target fragment classviewId- id of the enclosingView, ornullif the fragment is not attached to any view (e.g. created standalone)
public record FragmentObservationInfo(@Nullable String fragmentId, String fragmentClass, @Nullable String viewId)
extends Record
POJO class for information about
Fragment that will be used for observation cardinalities.-
Constructor Summary
ConstructorsConstructorDescriptionFragmentObservationInfo(Fragment<?> fragment) FragmentObservationInfo(FragmentOwner parent, @Nullable String fragmentId, String fragmentClass) FragmentObservationInfo(@Nullable String fragmentId, String fragmentClass, @Nullable String viewId) Creates an instance of aFragmentObservationInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefragmentClassrecord component.@Nullable StringReturns the value of thefragmentIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@Nullable StringviewId()Returns the value of theviewIdrecord component.
-
Constructor Details
-
FragmentObservationInfo
-
FragmentObservationInfo
public FragmentObservationInfo(FragmentOwner parent, @Nullable String fragmentId, String fragmentClass) -
FragmentObservationInfo
public FragmentObservationInfo(@Nullable String fragmentId, String fragmentClass, @Nullable String viewId) Creates an instance of aFragmentObservationInforecord class.- Parameters:
fragmentId- the value for thefragmentIdrecord componentfragmentClass- the value for thefragmentClassrecord componentviewId- the value for theviewIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fragmentId
Returns the value of thefragmentIdrecord component.- Returns:
- the value of the
fragmentIdrecord component
-
fragmentClass
Returns the value of thefragmentClassrecord component.- Returns:
- the value of the
fragmentClassrecord component
-
viewId
Returns the value of theviewIdrecord component.- Returns:
- the value of the
viewIdrecord component
-