Record Class AbstractCommentAndReactionDataPolicy.HandlingResult
java.lang.Object
java.lang.Record
org.ametys.plugins.workspaces.datapolicy.AbstractCommentAndReactionDataPolicy.HandlingResult
- Record Components:
handled
- the number of elements handledfailed
- the number of elements in error
- Enclosing class:
AbstractCommentAndReactionDataPolicy
protected static record AbstractCommentAndReactionDataPolicy.HandlingResult(int handled, int failed)
extends Record
Record for processing result
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HandlingResult
(int handled, int failed) Creates an instance of aHandlingResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
failed()
Returns the value of thefailed
record component.int
handled()
Returns the value of thehandled
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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
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 '=='. -
handled
Returns the value of thehandled
record component.- Returns:
- the value of the
handled
record component
-
failed
Returns the value of thefailed
record component.- Returns:
- the value of the
failed
record component
-