Package com.g2forge.alexandria.java.with
Class WithExplanations<T,E>
- java.lang.Object
-
- com.g2forge.alexandria.java.with.WithExplanations<T,E>
-
- All Implemented Interfaces:
IHasExplanation<Collection<E>>
,IFunctional
,IRunnable
,ISupplier<T>
,IThrowRunnable<RuntimeException>
,IWithExplanation<T,Collection<E>>
,Runnable
,Supplier<T>
public class WithExplanations<T,E> extends Object implements IWithExplanation<T,Collection<E>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WithExplanations.WithExplanationsBuilder<T,E>
-
Field Summary
Fields Modifier and Type Field Description protected List<E>
explanation
protected T
value
-
Constructor Summary
Constructors Constructor Description WithExplanations(T value, List<E> explanation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,E>
WithExplanations.WithExplanationsBuilder<T,E>builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
T
get()
List<E>
getExplanation()
T
getValue()
int
hashCode()
WithExplanations.WithExplanationsBuilder<T,E>
toBuilder()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.function.ISupplier
run, toFunction, wrap
-
-
-
-
Constructor Detail
-
WithExplanations
@ConstructorProperties({"value","explanation"}) public WithExplanations(T value, List<E> explanation)
-
-
Method Detail
-
builder
public static <T,E> WithExplanations.WithExplanationsBuilder<T,E> builder()
-
toBuilder
public WithExplanations.WithExplanationsBuilder<T,E> toBuilder()
-
getValue
public T getValue()
-
getExplanation
public List<E> getExplanation()
- Specified by:
getExplanation
in interfaceIHasExplanation<T>
-
canEqual
protected boolean canEqual(Object other)
-
-