@DefaultCoder(value=SerializableCoder.class) public final class SuccessOrFailure extends java.lang.Object implements java.io.Serializable
PAssert
. Passed to a conclude function to act upon.Modifier and Type | Method and Description |
---|---|
@Nullable java.lang.AssertionError |
assertionError() |
boolean |
equals(@Nullable java.lang.Object o) |
static SuccessOrFailure |
failure(PAssert.PAssertionSite site,
@Nullable java.lang.Throwable t) |
int |
hashCode() |
boolean |
isSuccess() |
static SuccessOrFailure |
success() |
java.lang.String |
toString() |
public boolean isSuccess()
public @Nullable java.lang.AssertionError assertionError()
public static SuccessOrFailure success()
public static SuccessOrFailure failure(PAssert.PAssertionSite site, @Nullable java.lang.Throwable t)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object