java.lang.Object
java.lang.Record
pro.verron.officestamper.preset.Paragraphs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.data()Returns the value of thedatarecord component.elements()Returns the value of theelementsrecord component.<T> List<T> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theoddNumberOfBreaksrecord component.Optional<org.docx4j.wml.SectPr> Returns the value of thepreviousSectionBreakrecord component.final StringtoString()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 aParagraphsrecord class.- Parameters:
comment- the value for thecommentrecord componentdata- the value for thedatarecord componentelements- the value for theelementsrecord componentpreviousSectionBreak- the value for thepreviousSectionBreakrecord componentoddNumberOfBreaks- the value for theoddNumberOfBreaksrecord 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 thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-
previousSectionBreak
Returns the value of thepreviousSectionBreakrecord component.- Returns:
- the value of the
previousSectionBreakrecord component
-
oddNumberOfBreaks
public boolean oddNumberOfBreaks()Returns the value of theoddNumberOfBreaksrecord component.- Returns:
- the value of the
oddNumberOfBreaksrecord component
-