Record Class DiskCheck.Finding
java.lang.Object
java.lang.Record
org.applecommander.os.DiskCheck.Finding
- Enclosing interface:
DiskCheck
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theclassificationrecord component.Returns the value of thecoordinaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Finding
public Finding(String description, Optional<Runnable> action, String classification, Coordinate coordinate) Creates an instance of aFindingrecord class.- Parameters:
description- the value for thedescriptionrecord componentaction- the value for theactionrecord componentclassification- the value for theclassificationrecord componentcoordinate- the value for thecoordinaterecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
action
-
classification
Returns the value of theclassificationrecord component.- Returns:
- the value of the
classificationrecord component
-
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord component
-