Record Class flixw.Refresh
java.lang.Object
java.lang.Record
flixw.Refresh
- Enclosing class:
flixw
Whether the lock was rewritten, and the sentence explaining why not when it was not.
Both callers need the reason, for opposite purposes: `doctor --fix` discards it,
because it is repairing everything it can and this is one item among several, while
`pin --refresh` prints it -- there the user asked for this and nothing else, and a
command that does nothing and says nothing reads as one that worked.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchanged()Returns the value of thechangedrecord 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.why()Returns the value of thewhyrecord component.
-
Field Details
-
changed
private final boolean changedThe field for thechangedrecord component. -
why
The field for thewhyrecord component.
-
-
Constructor Details
-
Refresh
Refresh(boolean changed, String why) Creates an instance of aRefreshrecord class.- Parameters:
changed- the value for thechangedrecord componentwhy- the value for thewhyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
changed
public boolean changed()Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
why
Returns the value of thewhyrecord component.- Returns:
- the value of the
whyrecord component
-