Package com.github.searls.jasmine.model
Class ImmutableJasmineResult
- java.lang.Object
-
- com.github.searls.jasmine.model.AbstractJasmineResult
-
- com.github.searls.jasmine.model.ImmutableJasmineResult
-
- All Implemented Interfaces:
JasmineResult
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableJasmineResult extends AbstractJasmineResult
Immutable implementation ofAbstractJasmineResult.Use the builder to create immutable instances:
ImmutableJasmineResult.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableJasmineResult.BuilderBuilds instances of typeImmutableJasmineResult.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableJasmineResult.Builderbuilder()Creates a builder forImmutableJasmineResult.static ImmutableJasmineResultcopyOf(AbstractJasmineResult instance)Creates an immutable copy of aAbstractJasmineResultvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableJasmineResultthat have equal attribute values.StringgetDetails()inthashCode()Computes a hash code from attributes:details.StringtoString()Prints the immutable valueJasmineResultwith attribute values.ImmutableJasmineResultwithDetails(String value)Copy the current immutable object by setting a value for thedetailsattribute.-
Methods inherited from class com.github.searls.jasmine.model.AbstractJasmineResult
didPass
-
-
-
-
Method Detail
-
getDetails
public String getDetails()
- Returns:
- The value of the
detailsattribute
-
withDetails
public final ImmutableJasmineResult withDetails(String value)
Copy the current immutable object by setting a value for thedetailsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for details- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableJasmineResultthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:details.
-
toString
public String toString()
Prints the immutable valueJasmineResultwith attribute values.
-
copyOf
public static ImmutableJasmineResult copyOf(AbstractJasmineResult instance)
Creates an immutable copy of aAbstractJasmineResultvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable JasmineResult instance
-
builder
public static ImmutableJasmineResult.Builder builder()
Creates a builder forImmutableJasmineResult.ImmutableJasmineResult.builder() .details(String) // requireddetails.build();- Returns:
- A new ImmutableJasmineResult builder
-
-