Package io.github.pimak.ntfy.core
Record Class NtfyAction.View
java.lang.Object
java.lang.Record
io.github.pimak.ntfy.core.NtfyAction.View
- All Implemented Interfaces:
NtfyAction
- Enclosing interface:
NtfyAction
public static record NtfyAction.View(String label, String url, boolean clear)
extends Record
implements NtfyAction
Opens
url in the browser/app when the action button is tapped.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.pimak.ntfy.core.NtfyAction
NtfyAction.Broadcast, NtfyAction.BroadcastExtra, NtfyAction.Http, NtfyAction.HttpHeader, NtfyAction.View -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclear()Returns the value of theclearrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
View
Creates an instance of aViewrecord class.- Parameters:
label- the value for thelabelrecord componenturl- the value for theurlrecord componentclear- the value for theclearrecord 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 '=='. -
label
Returns the value of thelabelrecord component.- Specified by:
labelin interfaceNtfyAction- Returns:
- the value of the
labelrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
clear
public boolean clear()Returns the value of theclearrecord component.- Returns:
- the value of the
clearrecord component
-