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

public final Class Summary

extends Object
implements SummaryAccumulator
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.summary.SummaryAccumulator
Static Imports
jdk.jpackage.internal.util.IdentityWrapper.wrapIdentity

Summary of the operation jpackage will perform.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface
pack-priv static record
pack-priv static record

Field Summary

Modifier and TypeField and Description
private final Map<IdentityWrapper<Property>, String>
private final Map<IdentityWrapper<Warning>, Summary.Content>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static <T extends SummaryItem> Comparator<Map.Entry<IdentityWrapper<T>, ?>>
private static <T> T
getProperty(BundleSpec bundle, Function<Application, T> appPropertyGetter, Function<Package, T> pkgPropertyGetter)

private static Path
public void
public void
public void
public Summary
private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

propertiesback to summary
private final Map<IdentityWrapper<Property>, String> properties
warningsback to summary
private final Map<IdentityWrapper<Warning>, Summary.Content> warnings

Constructor Detail

Summaryback to summary
public Summary()

Method Detail

comparatorback to summary
private static <T extends SummaryItem> Comparator<Map.Entry<IdentityWrapper<T>, ?>> comparator()
getPropertyback to summary
private static <T> T getProperty(BundleSpec bundle, Function<Application, T> appPropertyGetter, Function<Package, T> pkgPropertyGetter)
outputBundleNameback to summary
private static Path outputBundleName(BundleSpec bundle)
putback to summary
public void put(SummaryItem k, String value)

Implements jdk.jpackage.internal.summary.SummaryAccumulator.put.

Annotations
@Override
putIfAbsentback to summary
public void putIfAbsent(SummaryItem k, String value)

Implements jdk.jpackage.internal.summary.SummaryAccumulator.putIfAbsent.

Annotations
@Override
putMultiValueback to summary
public void putMultiValue(Warning k, String header, Iterable<String> items)

Implements jdk.jpackage.internal.summary.SummaryAccumulator.putMultiValue.

Annotations
@Override
putStandardPropertiesIfAbsentback to summary
public Summary putStandardPropertiesIfAbsent(StandardBundlingOperation op, Path outputDir, BundleSpec bundle)
versionback to summary
private static String version(BundleSpec bundle)
jdk.jpackage.internal.summary back to summary

private sealed Interface Summary.Content

permits SingleLineContent, MultiLineContent
Known Direct Implementers
jdk.jpackage.internal.summary.Summary.SingleLineContent, jdk.jpackage.internal.summary.Summary.MultiLineContent

jdk.jpackage.internal.summary back to summary

pack-priv final Record Summary.MultiLineContent

extends Record
implements Content
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.summary.Summary.Content
Record Components
header:String 
items:Iterable<String> 

Field Summary

Modifier and TypeField and Description
private final String
header

Record Component accessed by header().

private final Iterable<String>
items

Record Component accessed by items().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

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

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
header()

Record Component getter of header.

public Iterable<String>
items()

Record Component getter of items.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

headerback to summary
private final String header

Record Component accessed by header().

itemsback to summary
private final Iterable<String> items

Record Component accessed by items().

Constructor Detail

MultiLineContentback to summary
pack-priv MultiLineContent(String header, Iterable<String> items)

Method Detail

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).
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.

headerback to summary
public String header()

Record Component getter of header.

itemsback to summary
public Iterable<String> items()

Record Component getter of items.

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.summary back to summary

pack-priv final Record Summary.SingleLineContent

extends Record
implements Content
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.summary.Summary.Content
Record Components
str:String 

Field Summary

Modifier and TypeField and Description
private final String
str

Record Component accessed by str().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

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

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
str()

Record Component getter of str.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

strback to summary
private final String str

Record Component accessed by str().

Constructor Detail

SingleLineContentback to summary
pack-priv SingleLineContent(String str)

Method Detail

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).
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.

strback to summary
public String str()

Record Component getter of str.

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.