Package org.ametys.cms.trash.element
Record Class TrashElementDAO.RestorationReport
java.lang.Object
java.lang.Record
org.ametys.cms.trash.element.TrashElementDAO.RestorationReport
- Record Components:
restoredObject
- the restored objectrestoredLinkedObject
- the object restored along therestoredObject
- Enclosing class:
TrashElementDAO
public static record TrashElementDAO.RestorationReport(TrashableAmetysObject restoredObject, Set<TrashableAmetysObject> restoredLinkedObject)
extends Record
Describe the result of a restore operation.
The report contains :
- the restored object
- a list of all the object restored with it
-
Constructor Summary
ConstructorsConstructorDescriptionRestorationReport
(TrashableAmetysObject restoredObject, Set<TrashableAmetysObject> restoredLinkedObject) Creates an instance of aRestorationReport
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of therestoredLinkedObject
record component.Returns the value of therestoredObject
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RestorationReport
public RestorationReport(TrashableAmetysObject restoredObject, Set<TrashableAmetysObject> restoredLinkedObject) Creates an instance of aRestorationReport
record class.- Parameters:
restoredObject
- the value for therestoredObject
record componentrestoredLinkedObject
- the value for therestoredLinkedObject
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
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)
. -
restoredObject
Returns the value of therestoredObject
record component.- Returns:
- the value of the
restoredObject
record component
-
restoredLinkedObject
Returns the value of therestoredLinkedObject
record component.- Returns:
- the value of the
restoredLinkedObject
record component
-