@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableExplanation extends Explanation
Explanation.
Use the builder to create immutable instances:
ImmutableExplanation.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableExplanation.Builder
Builds instances of type
ImmutableExplanation. |
Explanation.ExplainValue<T>| Modifier and Type | Method and Description |
|---|---|
static ImmutableExplanation.Builder |
builder()
Creates a builder for
ImmutableExplanation. |
static ImmutableExplanation |
copyOf(Explanation instance)
Creates an immutable copy of a
Explanation value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableExplanation that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
list. |
com.google.common.collect.ImmutableList<Explanation.ExplainValue<?>> |
list() |
String |
toString()
Prints the immutable value
Explanation with attribute values. |
ImmutableExplanation |
withList(Explanation.ExplainValue<?>... elements)
Copy the current immutable object with elements that replace the content of
list. |
ImmutableExplanation |
withList(Iterable<? extends Explanation.ExplainValue<?>> elements)
Copy the current immutable object with elements that replace the content of
list. |
explainValue, render, renderpublic com.google.common.collect.ImmutableList<Explanation.ExplainValue<?>> list()
list in class Explanationlist attribute@SafeVarargs public final ImmutableExplanation withList(Explanation.ExplainValue<?>... elements)
list.elements - The elements to setthis objectpublic final ImmutableExplanation withList(Iterable<? extends Explanation.ExplainValue<?>> elements)
list.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of list elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableExplanation that have equal attribute values.public int hashCode()
list.public String toString()
Explanation with attribute values.public static ImmutableExplanation copyOf(Explanation instance)
Explanation 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 ImmutableExplanation.Builder builder()
ImmutableExplanation.
ImmutableExplanation.builder()
.addList|addAllList(de.flapdoodle.formula.solver.Explanation.ExplainValue<?>) // list elements
.build();
Copyright © 2023. All rights reserved.