public class LineComparator extends Object implements Comparator<Line>
Line
without line ending; forwards the comparison of
the content string to a delegate string comparator. Some constants exist for
common line comparators.Modifier and Type | Field and Description |
---|---|
static LineComparator |
COLLATOR
Line comparator using case sensitive comparison based on the current
local's collation order.
|
static LineComparator |
COLLATOR_IGNORE_CASE
Line comparator using case insensitive comparison based on the current
local's collation order.
|
static LineComparator |
COLLATOR_IGNORE_CASE_AND_LEADING_BLANKS
Line comparator using case insensitive comparison based on the current
local's collation order, ignoring leading blanks (spaces and tabs) in the
content string of the line.
|
static LineComparator |
COLLATOR_IGNORE_LEADING_BLANKS
Line comparator using case sensitive comparison based on the current
local's collation order, ignoring leading blanks (spaces and tabs) in the
content string of the line.
|
public static final LineComparator COLLATOR
public static final LineComparator COLLATOR_IGNORE_CASE
public static final LineComparator COLLATOR_IGNORE_LEADING_BLANKS
public static final LineComparator COLLATOR_IGNORE_CASE_AND_LEADING_BLANKS
Copyright © 2016. All rights reserved.