java.lang.Object
java.lang.Record
pro.verron.officestamper.preset.Paragraphs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomment()
Returns the value of thecomment
record component.data()
Returns the value of thedata
record component.elements()
Returns the value of theelements
record component.<T> List
<T> final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theoddNumberOfBreaks
record component.Optional
<org.docx4j.wml.SectPr> Returns the value of thepreviousSectionBreak
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Paragraphs
public Paragraphs(Comment comment, Iterator<Object> data, List<Object> elements, Optional<org.docx4j.wml.SectPr> previousSectionBreak, boolean oddNumberOfBreaks) Creates an instance of aParagraphs
record class.- Parameters:
comment
- the value for thecomment
record componentdata
- the value for thedata
record componentelements
- the value for theelements
record componentpreviousSectionBreak
- the value for thepreviousSectionBreak
record componentoddNumberOfBreaks
- the value for theoddNumberOfBreaks
record component
-
-
Method Details
-
elements
-
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 '=='. -
comment
Returns the value of thecomment
record component.- Returns:
- the value of the
comment
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-
elements
Returns the value of theelements
record component.- Returns:
- the value of the
elements
record component
-
previousSectionBreak
Returns the value of thepreviousSectionBreak
record component.- Returns:
- the value of the
previousSectionBreak
record component
-
oddNumberOfBreaks
public boolean oddNumberOfBreaks()Returns the value of theoddNumberOfBreaks
record component.- Returns:
- the value of the
oddNumberOfBreaks
record component
-