@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Verifier.Result"}) @Immutable public final class ImmutableResult extends Object implements Verifier.Result
Verifier.Result.
Use the builder to create immutable instances:
ImmutableResult.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableResult.Builder
Builds instances of type
ImmutableResult. |
Verifier.Result.Status| Modifier and Type | Method and Description |
|---|---|
static ImmutableResult.Builder |
builder()
Creates a builder for
ImmutableResult. |
static ImmutableResult |
copyOf(Verifier.Result instance)
Creates an immutable copy of a
Verifier.Result value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableResult that have equal attribute values. |
List<Verifier.VerifierError> |
getErrors() |
Verifier.Scope |
getScope() |
Verifier.Result.Status |
getStatus() |
int |
hashCode()
Computes a hash code from attributes:
status, scope, errors. |
String |
toString()
Prints the immutable value
Result with attribute values. |
ImmutableResult |
withErrors(Iterable<? extends Verifier.VerifierError> elements)
Copy the current immutable object with elements that replace the content of
errors. |
ImmutableResult |
withErrors(Verifier.VerifierError... elements)
Copy the current immutable object with elements that replace the content of
errors. |
ImmutableResult |
withScope(Verifier.Scope value)
Copy the current immutable object by setting a value for the
scope attribute. |
ImmutableResult |
withStatus(Verifier.Result.Status value)
Copy the current immutable object by setting a value for the
status attribute. |
public Verifier.Result.Status getStatus()
getStatus in interface Verifier.Resultstatus attributepublic Verifier.Scope getScope()
getScope in interface Verifier.Resultscope attributepublic List<Verifier.VerifierError> getErrors()
getErrors in interface Verifier.Resulterrors attributepublic final ImmutableResult withStatus(Verifier.Result.Status value)
status attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for statusthis objectpublic final ImmutableResult withScope(Verifier.Scope value)
scope attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for scopethis objectpublic final ImmutableResult withErrors(Verifier.VerifierError... elements)
errors.elements - The elements to setthis objectpublic final ImmutableResult withErrors(Iterable<? extends Verifier.VerifierError> elements)
errors.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of errors elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableResult that have equal attribute values.public int hashCode()
status, scope, errors.public String toString()
Result with attribute values.public static ImmutableResult copyOf(Verifier.Result instance)
Verifier.Result 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 ImmutableResult.Builder builder()
ImmutableResult.Copyright © 2016–2018 JBoss by Red Hat. All rights reserved.