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 thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextension
record component.final int
hashCode()
Returns a hash code value for this object.icon()
Returns the value of theicon
record component.mimeType()
Returns the value of themimeType
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jdk.jpackage.internal.model.FileAssociation
hasIcon
-
Constructor Details
-
Stub
Creates an instance of aStub
record class.- Parameters:
description
- the value for thedescription
record componenticon
- the value for theicon
record componentmimeType
- the value for themimeType
record componentextension
- the value for theextension
record 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 thedescription
record component.- Specified by:
description
in interfaceFileAssociation
- Returns:
- the value of the
description
record component
-
icon
Returns the value of theicon
record component.- Specified by:
icon
in interfaceFileAssociation
- Returns:
- the value of the
icon
record component
-
mimeType
Returns the value of themimeType
record component.- Specified by:
mimeType
in interfaceFileAssociation
- Returns:
- the value of the
mimeType
record component
-
extension
Returns the value of theextension
record component.- Specified by:
extension
in interfaceFileAssociation
- Returns:
- the value of the
extension
record component
-