Package org.openpdf.layout.breaker
Record Class DefaultLineBreakingStrategy.DefaultBreakPointsProvider
java.lang.Object
java.lang.Record
org.openpdf.layout.breaker.DefaultLineBreakingStrategy.DefaultBreakPointsProvider
- All Implemented Interfaces:
BreakPointsProvider
- Enclosing class:
- DefaultLineBreakingStrategy
private static record DefaultLineBreakingStrategy.DefaultBreakPointsProvider(BreakIterator iterator)
extends Record
implements BreakPointsProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BreakIteratorThe field for theiteratorrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefaultBreakPointsProvider(BreakIterator iterator) Creates an instance of aDefaultBreakPointsProviderrecord class. -
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.iterator()Returns the value of theiteratorrecord component.next()return next breaking point if available.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
iterator
The field for theiteratorrecord component.
-
-
Constructor Details
-
DefaultBreakPointsProvider
Creates an instance of aDefaultBreakPointsProviderrecord class.- Parameters:
iterator- the value for theiteratorrecord component
-
-
Method Details
-
next
Description copied from interface:BreakPointsProviderreturn next breaking point if available. If there are no more breaking points, return BreakPoint with position ==BreakIterator.DONE(-1)- Specified by:
nextin interfaceBreakPointsProvider
-
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 withObjects::equals(Object,Object). -
iterator
Returns the value of theiteratorrecord component.- Returns:
- the value of the
iteratorrecord component
-