APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.jpackage.internal

pack-priv final Record FileAssociationGroup

extends Record
Class Inheritance
Record Components
items:List<FileAssociation> 
Imports
java.nio.file.Path, java.util.Collection, .List, .Objects, .Optional, .Set, java.util.function.Predicate, .UnaryOperator, java.util.stream.Stream, jdk.jpackage.internal.model.FileAssociation

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final List<FileAssociation>
items

Record Component accessed by items().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static FileAssociationGroup.Builder
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

pack-priv static UnaryOperator<FileAssociationGroup>
pack-priv static Stream<FileAssociation>
public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

pack-priv boolean
public List<FileAssociation>
items()

Record Component getter of items.

pack-priv static UnaryOperator<FileAssociationGroup>
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

itemsback to summary
private final List<FileAssociation> items

Record Component accessed by items().

Constructor Detail

FileAssociationGroupback to summary
pack-priv FileAssociationGroup(List<FileAssociation> items)

Method Detail

buildback to summary
pack-priv static FileAssociationGroup.Builder build()
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
filterback to summary
pack-priv static UnaryOperator<FileAssociationGroup> filter(Predicate<FileAssociation> filter)
flatMapback to summary
pack-priv static Stream<FileAssociation> flatMap(Stream<FileAssociationGroup> groups)
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

isEmptyback to summary
pack-priv boolean isEmpty()
itemsback to summary
public List<FileAssociation> items()

Record Component getter of items.

mapback to summary
pack-priv static UnaryOperator<FileAssociationGroup> map(UnaryOperator<FileAssociation> mapper)
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

jdk.jpackage.internal back to summary

pack-priv final Class FileAssociationGroup.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private String
private Set<String>
private Path
private Set<String>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv FileAssociationGroup
private FileAssociation
pack-priv FileAssociationGroup.Builder
pack-priv Optional<String>
pack-priv FileAssociationGroup.Builder
pack-priv FileAssociationGroup.Builder
pack-priv FileAssociationGroup.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionback to summary
private String description
extensionsback to summary
private Set<String> extensions
iconback to summary
private Path icon
mimeTypesback to summary
private Set<String> mimeTypes

Constructor Detail

Builderback to summary
private Builder()

Method Detail

createback to summary
pack-priv FileAssociationGroup create() throws FileAssociationException
createFileAssociationback to summary
private FileAssociation createFileAssociation(String mimeType, String ext)
descriptionback to summary
pack-priv FileAssociationGroup.Builder description(String v)
descriptionback to summary
pack-priv Optional<String> description()
extensionsback to summary
pack-priv FileAssociationGroup.Builder extensions(Collection<String> v)
iconback to summary
pack-priv FileAssociationGroup.Builder icon(Path v)
mimeTypesback to summary
pack-priv FileAssociationGroup.Builder mimeTypes(Collection<String> v)
jdk.jpackage.internal back to summary

pack-priv Class FileAssociationGroup.FileAssociationException

extends Exception
Class Inheritance
Known Direct Subclasses
jdk.jpackage.internal.FileAssociationGroup.FileAssociationNoMimesException, jdk.jpackage.internal.FileAssociationGroup.FileAssociationNoExtensionsException

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

FileAssociationExceptionback to summary
pack-priv FileAssociationException()
jdk.jpackage.internal back to summary

pack-priv final Class FileAssociationGroup.FileAssociationNoExtensionsException

extends FileAssociationException
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jdk.jpackage.internal.FileAssociationGroup.FileAssociationException.serialVersionUID.

Constructor Detail

FileAssociationNoExtensionsExceptionback to summary
pack-priv FileAssociationNoExtensionsException()
jdk.jpackage.internal back to summary

pack-priv final Class FileAssociationGroup.FileAssociationNoMimesException

extends FileAssociationException
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jdk.jpackage.internal.FileAssociationGroup.FileAssociationException.serialVersionUID.

Constructor Detail

FileAssociationNoMimesExceptionback to summary
pack-priv FileAssociationNoMimesException()