Package com.io7m.waxmill.realize
Class WXMRealizationInstructions
java.lang.Object
com.io7m.waxmill.realize.WXMRealizationInstructions
- All Implemented Interfaces:
WXMRealizationInstructionsType
public final class WXMRealizationInstructions extends java.lang.Object implements WXMRealizationInstructionsType
The instructions that comprise a realization.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWXMRealizationInstructions.BuilderBuilds instances of typeWXMRealizationInstructions. -
Method Summary
Modifier and Type Method Description static WXMRealizationInstructions.Builderbuilder()Creates a builder forWXMRealizationInstructions.static WXMRealizationInstructionscopyOf(WXMRealizationInstructionsType instance)Creates an immutable copy of aWXMRealizationInstructionsTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofWXMRealizationInstructionsthat have equal attribute values.inthashCode()Computes a hash code from attributes:steps.java.util.List<WXMRealizationStepType>steps()java.lang.StringtoString()Prints the immutable valueWXMRealizationInstructionswith attribute values.WXMRealizationInstructionswithSteps(WXMRealizationStepType... elements)Copy the current immutable object with elements that replace the content ofsteps.WXMRealizationInstructionswithSteps(java.lang.Iterable<? extends WXMRealizationStepType> elements)Copy the current immutable object with elements that replace the content ofsteps.
-
Method Details
-
steps
- Specified by:
stepsin interfaceWXMRealizationInstructionsType- Returns:
- The realization steps
-
withSteps
Copy the current immutable object with elements that replace the content ofsteps.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSteps
public final WXMRealizationInstructions withSteps(java.lang.Iterable<? extends WXMRealizationStepType> elements)Copy the current immutable object with elements that replace the content ofsteps. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of steps elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofWXMRealizationInstructionsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:steps.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueWXMRealizationInstructionswith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
Creates an immutable copy of aWXMRealizationInstructionsTypevalue. 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 WXMRealizationInstructions instance
-
builder
Creates a builder forWXMRealizationInstructions.WXMRealizationInstructions.builder() .addSteps|addAllSteps(com.io7m.waxmill.realize.WXMRealizationStepType) //stepselements .build();- Returns:
- A new WXMRealizationInstructions builder
-