Package tech.jhipster.lite.module.domain
Record Class Indentation
java.lang.Object
java.lang.Record
tech.jhipster.lite.module.domain.Indentation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndentation(int spacesCount) Creates an instance of aIndentationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static Indentationfinal inthashCode()Returns a hash code value for this object.spaces()intReturns the value of thespacesCountrecord component.times(int times) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Indentation
public Indentation(int spacesCount) Creates an instance of aIndentationrecord class.- Parameters:
spacesCount- the value for thespacesCountrecord component
-
-
Method Details
-
from
-
times
-
spaces
-
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. All components in this record class are compared with '=='. -
spacesCount
public int spacesCount()Returns the value of thespacesCountrecord component.- Returns:
- the value of the
spacesCountrecord component
-