Package com.g2forge.alexandria.java.with
Class WithExplanation<T,E>
- java.lang.Object
-
- com.g2forge.alexandria.java.with.WithExplanation<T,E>
-
- All Implemented Interfaces:
IHasExplanation<E>
,IFunctional
,IRunnable
,ISupplier<T>
,IThrowRunnable<RuntimeException>
,IWithExplanation<T,E>
,Runnable
,Supplier<T>
public class WithExplanation<T,E> extends Object implements IWithExplanation<T,E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WithExplanation.WithExplanationBuilder<T,E>
-
Field Summary
Fields Modifier and Type Field Description protected E
explanation
protected T
value
-
Constructor Summary
Constructors Constructor Description WithExplanation(T value, E explanation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,E>
WithExplanation.WithExplanationBuilder<T,E>builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
T
get()
E
getExplanation()
T
getValue()
int
hashCode()
WithExplanation.WithExplanationBuilder<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
-
WithExplanation
@ConstructorProperties({"value","explanation"}) public WithExplanation(T value, E explanation)
-
-
Method Detail
-
builder
public static <T,E> WithExplanation.WithExplanationBuilder<T,E> builder()
-
toBuilder
public WithExplanation.WithExplanationBuilder<T,E> toBuilder()
-
getValue
public T getValue()
-
getExplanation
public E getExplanation()
- Specified by:
getExplanation
in interfaceIHasExplanation<T>
-
canEqual
protected boolean canEqual(Object other)
-
-