@Generated(value={"Immutables.generator","Verifier.Error"}) public final class ImmutableError extends Object implements Verifier.Error
Verifier.Error.
Use the builder to create immutable instances:
ImmutableError.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableError.Builder
Builds instances of type
ImmutableError. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableError.Builder |
builder()
Creates a builder for
ImmutableError. |
static ImmutableError |
copyOf(Verifier.Error instance)
Creates an immutable copy of a
Verifier.Error value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableError 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
Error with attribute values. |
ImmutableError |
withAttributes(Map<String,? extends Object> entries)
Copy the current immutable object by replacing the
attributes map with the specified map. |
ImmutableError |
withCode(String value)
Copy the current immutable object by setting a value for the
code attribute. |
ImmutableError |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
ImmutableError |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
ImmutableError |
withParameters(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
parameters. |
ImmutableError |
withParameters(String... elements)
Copy the current immutable object with elements that replace the content of
parameters. |
public String getCode()
getCode in interface Verifier.Errorcode attributepublic Optional<String> getDescription()
getDescription in interface Verifier.Errordescription attributepublic List<String> getParameters()
getParameters in interface Verifier.Errorparameters attributepublic Map<String,Object> getAttributes()
getAttributes in interface Verifier.Errorattributes attributepublic final ImmutableError 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 ImmutableError withDescription(String value)
description attribute.value - The value for descriptionthis objectpublic final ImmutableError 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 ImmutableError withParameters(String... elements)
parameters.elements - The elements to setthis objectpublic final ImmutableError 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 ImmutableError 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(Object another)
ImmutableError that have equal attribute values.public int hashCode()
code, description, parameters, attributes.public String toString()
Error with attribute values.public static ImmutableError copyOf(Verifier.Error instance)
Verifier.Error 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 ImmutableError.Builder builder()
ImmutableError.Copyright © 2016–2017 Red Hat. All rights reserved.