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

pack-priv final Class DefaultOptions

extends Object
implements Options
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.cli.Options
Static Imports
java.util.stream.Collectors.toUnmodifiableMap, .Collectors.toUnmodifiableSet

Nested and Inner Type Summary

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

Field Summary

Modifier and TypeField and Description
pack-priv static final DefaultOptions
private final Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue>
private final Set<OptionName>

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
DefaultOptions(Map<? extends WithOptionIdentifier, Object> values, Predicate<OptionName> optionNamesFilter)

pack-priv
DefaultOptions(Map<? extends WithOptionIdentifier, Object> values, Optional<Predicate<OptionName>> optionNamesFilter)

private

Method Summary

Modifier and TypeMethod and Description
pack-priv DefaultOptions
public boolean
private DefaultOptions
copy(Stream<? extends OptionIdentifier> ids, boolean includes)

public DefaultOptions
copyWith(Iterable<? extends OptionIdentifier> ids)

Overrides default jdk.jpackage.internal.cli.Options.copyWith.

Creates a copy of this instance with all but the given option identifiers filtered out.

public DefaultOptions
copyWithout(Iterable<? extends OptionIdentifier> ids)

Implements jdk.jpackage.internal.cli.Options.copyWithout.

Creates a copy of this instance without the given option identifiers.

pack-priv static DefaultOptions
public Optional<Object>
public Set<? extends OptionIdentifier>
pack-priv Set<OptionName>
private static Stream<OptionName>
pack-priv Set<WithOptionIdentifier>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTYback to summary
pack-priv static final DefaultOptions EMPTY
mapback to summary
private final Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue> map
optionNamesback to summary
private final Set<OptionName> optionNames

Constructor Detail

DefaultOptionsback to summary
pack-priv DefaultOptions(Map<? extends WithOptionIdentifier, Object> values)
DefaultOptionsback to summary
pack-priv DefaultOptions(Map<? extends WithOptionIdentifier, Object> values, Predicate<OptionName> optionNamesFilter)
DefaultOptionsback to summary
pack-priv DefaultOptions(Map<? extends WithOptionIdentifier, Object> values, Optional<Predicate<OptionName>> optionNamesFilter)
DefaultOptionsback to summary
private DefaultOptions(DefaultOptions.Snapshot snapshot)

Method Detail

addback to summary
pack-priv DefaultOptions add(DefaultOptions other)
containsback to summary
public boolean contains(OptionName optionName)

Implements jdk.jpackage.internal.cli.Options.contains.

Annotations
@Override
copyback to summary
private DefaultOptions copy(Stream<? extends OptionIdentifier> ids, boolean includes)
copyWithback to summary
public DefaultOptions copyWith(Iterable<? extends OptionIdentifier> ids)

Overrides default jdk.jpackage.internal.cli.Options.copyWith.

Doc from jdk.jpackage.internal.cli.Options.copyWith.

Creates a copy of this instance with all but the given option identifiers filtered out.

Same as copyWith(OptionIdentifier...) but takes an Iterable<OptionIdentifier> instead of an OptionIdentifier[].

Annotations
@Override
copyWithoutback to summary
public DefaultOptions copyWithout(Iterable<? extends OptionIdentifier> ids)

Implements jdk.jpackage.internal.cli.Options.copyWithout.

Doc from jdk.jpackage.internal.cli.Options.copyWithout.

Creates a copy of this instance without the given option identifiers.

Same as copyWithout(OptionIdentifier...) but takes an Iterable<OptionIdentifier> instead of an OptionIdentifier[].

Annotations
@Override
createback to summary
pack-priv static DefaultOptions create(DefaultOptions.Snapshot snapshot)
findback to summary
public Optional<Object> find(OptionIdentifier id)

Implements jdk.jpackage.internal.cli.Options.find.

Annotations
@Override
idsback to summary
public Set<? extends OptionIdentifier> ids()

Implements jdk.jpackage.internal.cli.Options.ids.

Annotations
@Override
optionNamesback to summary
pack-priv Set<OptionName> optionNames()
optionNamesback to summary
private static Stream<OptionName> optionNames(Stream<? extends WithOptionIdentifier> options)
withOptionIdentifierSetback to summary
pack-priv Set<WithOptionIdentifier> withOptionIdentifierSet()
jdk.jpackage.internal.cli back to summary

pack-priv final Record DefaultOptions.OptionIdentifierWithValue

extends Record
Class Inheritance
Record Components
withId:WithOptionIdentifier 
value:Object 

Field Summary

Modifier and TypeField and Description
private final Object
value

Record Component accessed by value().

private final WithOptionIdentifier
withId

Record Component accessed by withId().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv DefaultOptions.OptionIdentifierWithValue
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.

pack-priv OptionIdentifier
id()

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public Object
value()

Record Component getter of value.

public WithOptionIdentifier
withId()

Record Component getter of withId.

Field Detail

valueback to summary
private final Object value

Record Component accessed by value().

withIdback to summary
private final WithOptionIdentifier withId

Record Component accessed by withId().

Constructor Detail

OptionIdentifierWithValueback to summary
pack-priv OptionIdentifierWithValue(WithOptionIdentifier withId, Object value)

Method Detail

copyWithValueback to summary
pack-priv DefaultOptions.OptionIdentifierWithValue copyWithValue(Object value)
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.

idback to summary
pack-priv OptionIdentifier id()
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.

valueback to summary
public Object value()

Record Component getter of value.

withIdback to summary
public WithOptionIdentifier withId()

Record Component getter of withId.

jdk.jpackage.internal.cli back to summary

pack-priv final Record DefaultOptions.Snapshot

extends Record
Class Inheritance
Record Components
map:Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue> 
optionNames:Set<OptionName> 

Field Summary

Modifier and TypeField and Description
private final Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue>
map

Record Component accessed by map().

private final Set<OptionName>
optionNames

Record Component accessed by optionNames().

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 Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue>
map()

Record Component getter of map.

public Set<OptionName>
optionNames()

Record Component getter of optionNames.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

mapback to summary
private final Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue> map

Record Component accessed by map().

optionNamesback to summary
private final Set<OptionName> optionNames

Record Component accessed by optionNames().

Constructor Detail

Snapshotback to summary
pack-priv Snapshot(Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue> map, Set<OptionName> optionNames)

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.

mapback to summary
public Map<OptionIdentifier, DefaultOptions.OptionIdentifierWithValue> map()

Record Component getter of map.

optionNamesback to summary
public Set<OptionName> optionNames()

Record Component getter of optionNames.

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.