public static final class ImmutablePlatformMatch.Builder extends Object
ImmutablePlatformMatch.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutablePlatformMatch.Builder |
addAllVersion(Iterable<? extends de.flapdoodle.os.Version> elements)
Adds elements to
version set. |
ImmutablePlatformMatch.Builder |
addVersion(de.flapdoodle.os.Version... elements)
Adds elements to
version set. |
ImmutablePlatformMatch.Builder |
addVersion(de.flapdoodle.os.Version element)
Adds one element to
version set. |
ImmutablePlatformMatch.Builder |
bitSize(de.flapdoodle.os.BitSize bitSize)
Initializes the optional value
bitSize to bitSize. |
ImmutablePlatformMatch.Builder |
bitSize(Optional<? extends de.flapdoodle.os.BitSize> bitSize)
Initializes the optional value
bitSize to bitSize. |
ImmutablePlatformMatch |
build()
Builds a new
ImmutablePlatformMatch. |
ImmutablePlatformMatch.Builder |
cpuType(de.flapdoodle.os.CPUType cpuType)
Initializes the optional value
cpuType to cpuType. |
ImmutablePlatformMatch.Builder |
cpuType(Optional<? extends de.flapdoodle.os.CPUType> cpuType)
Initializes the optional value
cpuType to cpuType. |
ImmutablePlatformMatch.Builder |
from(PlatformMatch instance)
Fill a builder with attribute values from the provided
PlatformMatch instance. |
ImmutablePlatformMatch.Builder |
os(Optional<? extends de.flapdoodle.os.OS> os)
Initializes the optional value
os to os. |
ImmutablePlatformMatch.Builder |
os(de.flapdoodle.os.OS os)
Initializes the optional value
os to os. |
ImmutablePlatformMatch.Builder |
version(Iterable<? extends de.flapdoodle.os.Version> elements)
Sets or replaces all elements for
version set. |
public final ImmutablePlatformMatch.Builder from(PlatformMatch instance)
PlatformMatch instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder addVersion(de.flapdoodle.os.Version element)
version set.element - A version elementthis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder addVersion(de.flapdoodle.os.Version... elements)
version set.elements - An array of version elementsthis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder version(Iterable<? extends de.flapdoodle.os.Version> elements)
version set.elements - An iterable of version elementsthis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder addAllVersion(Iterable<? extends de.flapdoodle.os.Version> elements)
version set.elements - An iterable of version elementsthis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder cpuType(de.flapdoodle.os.CPUType cpuType)
cpuType to cpuType.cpuType - The value for cpuTypethis builder for chained invocationpublic final ImmutablePlatformMatch.Builder cpuType(Optional<? extends de.flapdoodle.os.CPUType> cpuType)
cpuType to cpuType.cpuType - The value for cpuTypethis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder bitSize(de.flapdoodle.os.BitSize bitSize)
bitSize to bitSize.bitSize - The value for bitSizethis builder for chained invocationpublic final ImmutablePlatformMatch.Builder bitSize(Optional<? extends de.flapdoodle.os.BitSize> bitSize)
bitSize to bitSize.bitSize - The value for bitSizethis builder for use in a chained invocationpublic final ImmutablePlatformMatch.Builder os(de.flapdoodle.os.OS os)
os to os.os - The value for osthis builder for chained invocationpublic final ImmutablePlatformMatch.Builder os(Optional<? extends de.flapdoodle.os.OS> os)
os to os.os - The value for osthis builder for use in a chained invocationpublic ImmutablePlatformMatch build()
ImmutablePlatformMatch.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.