Package org.eolang
Class Expect<T>
- java.lang.Object
-
- org.eolang.Expect<T>
-
- Type Parameters:
T
- Type of returned value
public final class Expect<T> extends Object
This wrapper helps us explain our expectations in an error message that we throw.- Since:
- 0.41.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Expect.Action<T>
The action.
-
Constructor Summary
Constructors Constructor Description Expect(Expect.Action<T> act, String msg)
Ctor.
-
-
-
Constructor Detail
-
Expect
public Expect(Expect.Action<T> act, String msg)
Ctor.- Parameters:
act
- The actionmsg
- Additional explanation
-
-
Method Detail
-
it
public T it()
Take the value from the lambda.- Returns:
- The value
-
-