public final class ImmutableAllOf extends AllOf
AllOf.
Use the builder to create immutable instances:
ImmutableAllOf.builder().
Use the static factory method to create immutable instances:
ImmutableAllOf.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAllOf.Builder
Builds instances of type
ImmutableAllOf. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAllOf.Builder |
builder()
Creates a builder for
ImmutableAllOf. |
static ImmutableAllOf |
copyOf(AllOf instance)
Creates an immutable copy of a
AllOf value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAllOf that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
pecularities. |
static ImmutableAllOf |
of(Iterable<? extends Peculiarity> pecularities)
Construct a new immutable
AllOf instance. |
static ImmutableAllOf |
of(List<Peculiarity> pecularities)
Construct a new immutable
AllOf instance. |
List<Peculiarity> |
pecularities() |
String |
toString()
Prints the immutable value
AllOf with attribute values. |
ImmutableAllOf |
withPecularities(Iterable<? extends Peculiarity> elements)
Copy the current immutable object with elements that replace the content of
pecularities. |
ImmutableAllOf |
withPecularities(Peculiarity... elements)
Copy the current immutable object with elements that replace the content of
pecularities. |
public List<Peculiarity> pecularities()
pecularities in class AllOfpecularities attributepublic final ImmutableAllOf withPecularities(Peculiarity... elements)
pecularities.elements - The elements to setthis objectpublic final ImmutableAllOf withPecularities(Iterable<? extends Peculiarity> elements)
pecularities.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of pecularities elements to setthis objectpublic boolean equals(Object another)
ImmutableAllOf that have equal attribute values.public int hashCode()
pecularities.public String toString()
AllOf with attribute values.public static ImmutableAllOf of(List<Peculiarity> pecularities)
AllOf instance.pecularities - The value for the pecularities attributepublic static ImmutableAllOf of(Iterable<? extends Peculiarity> pecularities)
AllOf instance.pecularities - The value for the pecularities attributepublic static ImmutableAllOf copyOf(AllOf instance)
AllOf 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 ImmutableAllOf.Builder builder()
ImmutableAllOf.
ImmutableAllOf.builder()
.addPecularities|addAllPecularities(de.flapdoodle.os.common.Peculiarity) // pecularities elements
.build();
Copyright © 2024. All rights reserved.