Record Class Browser.WebViewUnavailableDialog.DialogOption
java.lang.Object
java.lang.Record
org.eclipse.swt.browser.Browser.WebViewUnavailableDialog.DialogOption
- Enclosing class:
Browser.WebViewUnavailableDialog
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDialogOption(int index, String message) Creates an instance of aDialogOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
index
private final int indexThe field for theindexrecord component. -
message
The field for themessagerecord component.
-
-
Constructor Details
-
DialogOption
Creates an instance of aDialogOptionrecord class.- Parameters:
index- the value for theindexrecord componentmessage- the value for themessagerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-