@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","InputErrorIF"}) @Immutable public final class InputError extends Object implements InputErrorIF
InputErrorIF.
Use the builder to create immutable instances:
InputError.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
InputError.Builder
Builds instances of type
InputError. |
| Modifier and Type | Method and Description |
|---|---|
static InputError.Builder |
builder()
Creates a builder for
InputError. |
static InputError |
copyOf(InputErrorIF instance)
Creates an immutable copy of a
InputErrorIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
InputError that have equal attribute values. |
String |
getError() |
String |
getName() |
int |
hashCode()
Computes a hash code from attributes:
name, error. |
String |
toString()
Prints the immutable value
InputError with attribute values. |
InputError |
withError(String error)
Copy the current immutable object by setting a value for the
error attribute. |
InputError |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
public String getName()
getName in interface InputErrorIFname attributepublic String getError()
getError in interface InputErrorIFerror attributepublic final InputError withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final InputError withError(String error)
error attribute.
An equals check used to prevent copying of the same value by returning this.error - A new value for errorthis objectpublic boolean equals(@Nullable Object another)
InputError that have equal attribute values.public int hashCode()
name, error.public String toString()
InputError with attribute values.public static InputError copyOf(InputErrorIF instance)
InputErrorIF 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 InputError.Builder builder()
InputError.Copyright © 2019. All rights reserved.