java.lang.Object
org.sejda.sambox.text.TextPositionComparator
- All Implemented Interfaces:
Comparator<TextPosition>
This class is a comparator for TextPosition operators. It handles
pages with text in different directions by grouping the text based
on direction and sorting in that direction. This allows continuous text
in a given direction to be more easily grouped together.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
TextPositionComparator
public TextPositionComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<TextPosition>
-