@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Verifier.VerifierError"}) @Immutable public final class ImmutableVerifierError extends Object implements Verifier.VerifierError
Verifier.VerifierError.
Use the builder to create immutable instances:
ImmutableVerifierError.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableVerifierError.Builder
Builds instances of type
ImmutableVerifierError. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableVerifierError.Builder |
builder()
Creates a builder for
ImmutableVerifierError. |
static ImmutableVerifierError |
copyOf(Verifier.VerifierError instance)
Creates an immutable copy of a
Verifier.VerifierError value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableVerifierError that have equal attribute values. |
Map<String,Object> |
getAttributes() |
String |
getCode() |
Optional<String> |
getDescription() |
List<String> |
getParameters() |
int |
hashCode()
Computes a hash code from attributes:
code, description, parameters, attributes. |
String |
toString()
Prints the immutable value
VerifierError with attribute values. |
ImmutableVerifierError |
withAttributes(Map<String,? extends Object> entries)
Copy the current immutable object by replacing the
attributes map with the specified map. |
ImmutableVerifierError |
withCode(String value)
Copy the current immutable object by setting a value for the
code attribute. |
ImmutableVerifierError |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
ImmutableVerifierError |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
ImmutableVerifierError |
withParameters(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
parameters. |
ImmutableVerifierError |
withParameters(String... elements)
Copy the current immutable object with elements that replace the content of
parameters. |
public String getCode()
getCode in interface Verifier.VerifierErrorcode attributepublic Optional<String> getDescription()
getDescription in interface Verifier.VerifierErrordescription attributepublic List<String> getParameters()
getParameters in interface Verifier.VerifierErrorparameters attributepublic Map<String,Object> getAttributes()
getAttributes in interface Verifier.VerifierErrorattributes attributepublic final ImmutableVerifierError withCode(String value)
code attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for codethis objectpublic final ImmutableVerifierError withDescription(String value)
description attribute.value - The value for descriptionthis objectpublic final ImmutableVerifierError withDescription(Optional<String> optional)
description attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for descriptionthis objectpublic final ImmutableVerifierError withParameters(String... elements)
parameters.elements - The elements to setthis objectpublic final ImmutableVerifierError withParameters(Iterable<String> elements)
parameters.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of parameters elements to setthis objectpublic final ImmutableVerifierError withAttributes(Map<String,? extends Object> entries)
attributes map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the attributes mapthis objectpublic boolean equals(@Nullable Object another)
ImmutableVerifierError that have equal attribute values.public int hashCode()
code, description, parameters, attributes.public String toString()
VerifierError with attribute values.public static ImmutableVerifierError copyOf(Verifier.VerifierError instance)
Verifier.VerifierError 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 ImmutableVerifierError.Builder builder()
ImmutableVerifierError.Copyright © 2016–2018 JBoss by Red Hat. All rights reserved.