public final class ImmutablePlatformMatchRules extends PlatformMatchRules
PlatformMatchRules.
Use the builder to create immutable instances:
ImmutablePlatformMatchRules.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePlatformMatchRules.Builder
Builds instances of type
ImmutablePlatformMatchRules. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePlatformMatchRules.Builder |
builder()
Creates a builder for
ImmutablePlatformMatchRules. |
static ImmutablePlatformMatchRules |
copyOf(PlatformMatchRules instance)
Creates an immutable copy of a
PlatformMatchRules value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePlatformMatchRules that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
rules. |
String |
toString()
Prints the immutable value
PlatformMatchRules with attribute values. |
ImmutablePlatformMatchRules |
withRules(Iterable<? extends PlatformMatchRule> elements)
Copy the current immutable object with elements that replace the content of
rules. |
ImmutablePlatformMatchRules |
withRules(PlatformMatchRule... elements)
Copy the current immutable object with elements that replace the content of
rules. |
empty, packageFor, withpublic final ImmutablePlatformMatchRules withRules(PlatformMatchRule... elements)
rules.elements - The elements to setthis objectpublic final ImmutablePlatformMatchRules withRules(Iterable<? extends PlatformMatchRule> elements)
rules.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of rules elements to setthis objectpublic boolean equals(Object another)
ImmutablePlatformMatchRules that have equal attribute values.public int hashCode()
rules.public String toString()
PlatformMatchRules with attribute values.public static ImmutablePlatformMatchRules copyOf(PlatformMatchRules instance)
PlatformMatchRules 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 ImmutablePlatformMatchRules.Builder builder()
ImmutablePlatformMatchRules.
ImmutablePlatformMatchRules.builder()
.addRules|addAllRules(de.flapdoodle.embed.mongo.packageresolver.PlatformMatchRule) // rules elements
.build();
Copyright © 2021. All rights reserved.