Record Class GenerateSimpleResourceTask.Repeat
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.example.plugin.GenerateSimpleResourceTask.Repeat
- Record Components:
number
- Number of repeatsrepeatSuffix
- The suffix to useending
- The file ending
- Enclosing class:
- GenerateSimpleResourceTask
public static record GenerateSimpleResourceTask.Repeat(int number, String repeatSuffix, GenerateSimpleResourceTask.Ending ending)
extends Record
Configuration for repeating the file.
-
Constructor Summary
ConstructorsConstructorDescriptionRepeat
(int number, String repeatSuffix, GenerateSimpleResourceTask.Ending ending) Creates an instance of aRepeat
record class. -
Method Summary
Modifier and TypeMethodDescriptionending()
Returns the value of theending
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
number()
Returns the value of thenumber
record component.Returns the value of therepeatSuffix
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Repeat
Creates an instance of aRepeat
record class.- Parameters:
number
- the value for thenumber
record componentrepeatSuffix
- the value for therepeatSuffix
record componentending
- the value for theending
record component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
number
public int number()Returns the value of thenumber
record component.- Returns:
- the value of the
number
record component
-
repeatSuffix
Returns the value of therepeatSuffix
record component.- Returns:
- the value of the
repeatSuffix
record component
-
ending
Returns the value of theending
record component.- Returns:
- the value of the
ending
record component
-