Record Class OpResult.Options
java.lang.Object
java.lang.Record
com.evolveum.midpoint.gui.api.component.result.OpResult.Options
- All Implemented Interfaces:
Serializable
- Enclosing class:
- OpResult
public static record OpResult.Options(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks)
extends Record
implements Serializable
Options for showing
OpResult
objects.- See Also:
-
Constructor Summary
ConstructorDescriptionOptions
(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks) Creates an instance of aOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpResult.Options
create()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehideInProgress
record component.boolean
Returns the value of thehideSuccess
record component.boolean
Returns the value of thehideTaskLinks
record component.final String
toString()
Returns a string representation of this record class.withHideInProgress
(boolean value) `IN_PROGRESS` messages are hidden.withHideSuccess
(boolean value) `SUCCESS` messages are hidden.withHideTaskLinks
(boolean value) Information about background tasks is not clickable.
-
Constructor Details
-
Options
public Options(boolean hideSuccess, boolean hideInProgress, boolean hideTaskLinks) Creates an instance of aOptions
record class.- Parameters:
hideSuccess
- the value for thehideSuccess
record componenthideInProgress
- the value for thehideInProgress
record componenthideTaskLinks
- the value for thehideTaskLinks
record component
-
-
Method Details
-
create
-
withHideSuccess
`SUCCESS` messages are hidden. -
withHideInProgress
`IN_PROGRESS` messages are hidden. -
withHideTaskLinks
Information about background tasks is not clickable. TODO better name? -
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 with '=='. -
hideSuccess
public boolean hideSuccess()Returns the value of thehideSuccess
record component.- Returns:
- the value of the
hideSuccess
record component
-
hideInProgress
public boolean hideInProgress()Returns the value of thehideInProgress
record component.- Returns:
- the value of the
hideInProgress
record component
-
hideTaskLinks
public boolean hideTaskLinks()Returns the value of thehideTaskLinks
record component.- Returns:
- the value of the
hideTaskLinks
record component
-