Package org.emrick.project
Record Class BoardDriverInstaller.InstallOutcome
java.lang.Object
java.lang.Record
org.emrick.project.BoardDriverInstaller.InstallOutcome
- Enclosing class:
- BoardDriverInstaller
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstallOutcome(String title, String message, int messageType) Creates an instance of aInstallOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.private static BoardDriverInstaller.InstallOutcomefinal inthashCode()Returns a hash code value for this object.private static BoardDriverInstaller.InstallOutcomemessage()Returns the value of themessagerecord component.intReturns the value of themessageTyperecord component.private static BoardDriverInstaller.InstallOutcometitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.private static BoardDriverInstaller.InstallOutcome
-
Field Details
-
title
The field for thetitlerecord component. -
message
The field for themessagerecord component. -
messageType
private final int messageTypeThe field for themessageTyperecord component.
-
-
Constructor Details
-
InstallOutcome
Creates an instance of aInstallOutcomerecord class.- Parameters:
title- the value for thetitlerecord componentmessage- the value for themessagerecord componentmessageType- the value for themessageTyperecord component
-
-
Method Details
-
success
-
info
-
warning
-
error
-
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 '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
messageType
public int messageType()Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-