Package io.micronaut.sourcegen.model
Record Class StatementDef.Multi
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.StatementDef.Multi
- Record Components:
- statements- The statements
- All Implemented Interfaces:
- StatementDef
- Enclosing interface:
- StatementDef
public static record StatementDef.Multi(@NonNull List<StatementDef> statements)
extends Record
implements StatementDef
The multi statement.
- Since:
- 1.2
- Author:
- Denis Stepanov
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.sourcegen.model.StatementDefStatementDef.Assign, StatementDef.DefineAndAssign, StatementDef.If, StatementDef.IfElse, StatementDef.Multi, StatementDef.Return, StatementDef.Switch, StatementDef.Throw, StatementDef.While
- 
Constructor SummaryConstructorsConstructorDescriptionMulti(@NonNull List<StatementDef> statements) Creates an instance of aMultirecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flatten()Flatten the collection.final inthashCode()Returns a hash code value for this object.@NonNull List<StatementDef>Returns the value of thestatementsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.sourcegen.model.StatementDefafter
- 
Constructor Details- 
MultiCreates an instance of aMultirecord class.- Parameters:
- statements- the value for the- statementsrecord component
 
 
- 
- 
Method Details- 
flattenDescription copied from interface:StatementDefFlatten the collection.- Specified by:
- flattenin interface- StatementDef
- Returns:
- all the statements
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
statementsReturns the value of thestatementsrecord component.- Returns:
- the value of the statementsrecord component
 
 
-