Package ch.tocco.nice2.rest.action.spi
Record Class AbstractActionResource.ActionResultFlags
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.action.spi.AbstractActionResource.ActionResultFlags
- Enclosing class:
AbstractActionResource
public static record AbstractActionResource.ActionResultFlags(boolean clearSelection, boolean selectionDeleted, boolean reloadDetail)
extends Record
-
Constructor Summary
ConstructorDescriptionActionResultFlags
(boolean clearSelection, boolean selectionDeleted, boolean reloadDetail) Creates an instance of aActionResultFlags
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theclearSelection
record component.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 thereloadDetail
record component.boolean
Returns the value of theselectionDeleted
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ActionResultFlags
public ActionResultFlags(boolean clearSelection, boolean selectionDeleted, boolean reloadDetail) Creates an instance of aActionResultFlags
record class.- Parameters:
clearSelection
- the value for theclearSelection
record componentselectionDeleted
- the value for theselectionDeleted
record componentreloadDetail
- the value for thereloadDetail
record 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 with '=='. -
clearSelection
public boolean clearSelection()Returns the value of theclearSelection
record component.- Returns:
- the value of the
clearSelection
record component
-
selectionDeleted
public boolean selectionDeleted()Returns the value of theselectionDeleted
record component.- Returns:
- the value of the
selectionDeleted
record component
-
reloadDetail
public boolean reloadDetail()Returns the value of thereloadDetail
record component.- Returns:
- the value of the
reloadDetail
record component
-