Record Class FileAssociation.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.FileAssociation.Stub
- All Implemented Interfaces:
FileAssociation
- Enclosing interface:
FileAssociation
public static record FileAssociation.Stub(Optional<String> description, Optional<Path> icon, String mimeType, String extension)
extends Record
implements FileAssociation
Default implementation of
FileAssociation interface-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.FileAssociation
FileAssociation.Stub -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionrecord component.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.mimeType()Returns the value of themimeTyperecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jdk.jpackage.internal.model.FileAssociation
hasIcon
-
Constructor Details
-
Stub
Creates an instance of aStubrecord class.- Parameters:
description- the value for thedescriptionrecord componenticon- the value for theiconrecord componentmimeType- the value for themimeTyperecord componentextension- the value for theextensionrecord 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.- Specified by:
descriptionin interfaceFileAssociation- Returns:
- the value of the
descriptionrecord component
-
icon
Returns the value of theiconrecord component.- Specified by:
iconin interfaceFileAssociation- Returns:
- the value of the
iconrecord component
-
mimeType
Returns the value of themimeTyperecord component.- Specified by:
mimeTypein interfaceFileAssociation- Returns:
- the value of the
mimeTyperecord component
-
extension
Returns the value of theextensionrecord component.- Specified by:
extensionin interfaceFileAssociation- Returns:
- the value of the
extensionrecord component
-