public final class ImmutablePlatformMatch extends Object implements PlatformMatch
PlatformMatch.
Use the builder to create immutable instances:
ImmutablePlatformMatch.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePlatformMatch.Builder
Builds instances of type
ImmutablePlatformMatch. |
| Modifier and Type | Method and Description |
|---|---|
Optional<de.flapdoodle.os.BitSize> |
bitSize() |
static ImmutablePlatformMatch.Builder |
builder()
Creates a builder for
ImmutablePlatformMatch. |
static ImmutablePlatformMatch |
copyOf(PlatformMatch instance)
Creates an immutable copy of a
PlatformMatch value. |
Optional<de.flapdoodle.os.CPUType> |
cpuType() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePlatformMatch that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
version, cpuType, bitSize, os. |
Optional<de.flapdoodle.os.OS> |
os() |
String |
toString()
Prints the immutable value
PlatformMatch with attribute values. |
Set<de.flapdoodle.os.Version> |
version() |
ImmutablePlatformMatch |
withBitSize(de.flapdoodle.os.BitSize value)
Copy the current immutable object by setting a present value for the optional
bitSize attribute. |
ImmutablePlatformMatch |
withBitSize(Optional<? extends de.flapdoodle.os.BitSize> optional)
Copy the current immutable object by setting an optional value for the
bitSize attribute. |
ImmutablePlatformMatch |
withCpuType(de.flapdoodle.os.CPUType value)
Copy the current immutable object by setting a present value for the optional
cpuType attribute. |
ImmutablePlatformMatch |
withCpuType(Optional<? extends de.flapdoodle.os.CPUType> optional)
Copy the current immutable object by setting an optional value for the
cpuType attribute. |
ImmutablePlatformMatch |
withOs(Optional<? extends de.flapdoodle.os.OS> optional)
Copy the current immutable object by setting an optional value for the
os attribute. |
ImmutablePlatformMatch |
withOs(de.flapdoodle.os.OS value)
Copy the current immutable object by setting a present value for the optional
os attribute. |
ImmutablePlatformMatch |
withVersion(Iterable<? extends de.flapdoodle.os.Version> elements)
Copy the current immutable object with elements that replace the content of
version. |
ImmutablePlatformMatch |
withVersion(de.flapdoodle.os.Version... elements)
Copy the current immutable object with elements that replace the content of
version. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitany, dontMatch, dontMatch, dontMatch, match, match, withOsall, andThen, anypublic Set<de.flapdoodle.os.Version> version()
version in interface PlatformMatchversion attributepublic Optional<de.flapdoodle.os.CPUType> cpuType()
cpuType in interface PlatformMatchcpuType attributepublic Optional<de.flapdoodle.os.BitSize> bitSize()
bitSize in interface PlatformMatchbitSize attributepublic Optional<de.flapdoodle.os.OS> os()
os in interface PlatformMatchos attributepublic final ImmutablePlatformMatch withVersion(de.flapdoodle.os.Version... elements)
version.elements - The elements to setthis objectpublic final ImmutablePlatformMatch withVersion(Iterable<? extends de.flapdoodle.os.Version> elements)
version.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of version elements to setthis objectpublic final ImmutablePlatformMatch withCpuType(de.flapdoodle.os.CPUType value)
cpuType attribute.value - The value for cpuTypethis objectpublic final ImmutablePlatformMatch withCpuType(Optional<? extends de.flapdoodle.os.CPUType> optional)
cpuType attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for cpuTypethis objectpublic final ImmutablePlatformMatch withBitSize(de.flapdoodle.os.BitSize value)
bitSize attribute.value - The value for bitSizethis objectpublic final ImmutablePlatformMatch withBitSize(Optional<? extends de.flapdoodle.os.BitSize> optional)
bitSize attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for bitSizethis objectpublic final ImmutablePlatformMatch withOs(de.flapdoodle.os.OS value)
os attribute.value - The value for osthis objectpublic final ImmutablePlatformMatch withOs(Optional<? extends de.flapdoodle.os.OS> optional)
os attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for osthis objectpublic boolean equals(Object another)
ImmutablePlatformMatch that have equal attribute values.public int hashCode()
version, cpuType, bitSize, os.public String toString()
PlatformMatch with attribute values.public static ImmutablePlatformMatch copyOf(PlatformMatch instance)
PlatformMatch value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutablePlatformMatch.Builder builder()
ImmutablePlatformMatch.
ImmutablePlatformMatch.builder()
.addVersion|addAllVersion(de.flapdoodle.os.Version) // version elements
.cpuType(de.flapdoodle.os.CPUType) // optional cpuType
.bitSize(de.flapdoodle.os.BitSize) // optional bitSize
.os(de.flapdoodle.os.OS) // optional os
.build();
builder in interface PlatformMatchCopyright © 2021. All rights reserved.