java.lang.Object
java.lang.Record
io.jenetics.jpx.GPX.Writer.Indent
- Record Components:
value- the indentation value
- Enclosing class:
- GPX.Writer
Represents the indentation value, the writer is using. An indentation
string of
null means that the GPX data is written as one XML
line. An empty string adds line feeds, but with no indentation.- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GPX.Writer.IndentNo indentation, but with new-lines.static final GPX.Writer.IndentThis indentation lets theGPX.Writerwrite the GPX data into one XML line.static final GPX.Writer.IndentIndentation with 2 spaces.static final GPX.Writer.IndentIndentation with 4 spaces.static final GPX.Writer.IndentIndentation with tabs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
NULL
This indentation lets theGPX.Writerwrite the GPX data into one XML line. -
NONE
No indentation, but with new-lines. -
SPACE4
Indentation with 4 spaces. -
SPACE2
Indentation with 2 spaces. -
TAB1
Indentation with tabs.
-
-
Constructor Details
-
Indent
Creates an instance of aIndentrecord class.- Parameters:
value- the value for thevaluerecord 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
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 withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-