R
- the generic return type for all command signature methods
to support different implementor types; the methods of a
command factory for instance returns a command instance;
command builders can also implement this interface, but their
methods return the builder itself enabling for chained method
invocation to create joined commandspublic static interface Sort.Interface<R> extends CommandInterface<R>
Modifier and Type | Method and Description |
---|---|
R |
sort()
Sort the lines read from the standard input and writes the result to
the standard output.
|
R |
sort(Comparator<? super Line> comparator)
Sort the lines read from the standard input and writes the result to
the standard output.
|
R |
sort(Comparator<? super Line> comparator,
File... files)
Sort the lines of all the specified files together and writes the
result to the standard output.
|
R |
sort(Comparator<? super Line> comparator,
Input... inputs)
Sort the lines of all the specified inputs together and writes the
result to the standard output.
|
R |
sort(Comparator<? super Line> comparator,
String... paths)
Sort the lines of all the specified files together and writes the
result to the standard output.
|
R |
sort(File... files)
Sort the lines of all the specified files together and writes the
result to the standard output.
|
R |
sort(Input... inputs)
Sort the lines of all the specified inputs together and writes the
result to the standard output.
|
R |
sort(SortOptions options)
Sorts, merges, or sequence checks the lines read from the standard
input and writes the result to the standard output.
|
R |
sort(SortOptions options,
Comparator<? super Line> comparator)
Sorts, merges, or sequence checks the lines read from the standard
input and writes the result to the standard output.
|
R |
sort(SortOptions options,
Comparator<? super Line> comparator,
File... files)
Sorts, merges, or sequence checks the lines the lines of all the
specified files together and writes the result to the standard
output.
|
R |
sort(SortOptions options,
Comparator<? super Line> comparator,
Input... inputs)
Sorts, merges, or sequence checks the lines the lines of all the
specified inputs together and writes the result to the standard
output.
|
R |
sort(SortOptions options,
Comparator<? super Line> comparator,
String... paths)
Sorts, merges, or sequence checks the lines the lines of all the
specified files together and writes the result to the standard
output.
|
R |
sort(SortOptions options,
File... files)
Sorts, merges, or sequence checks the lines the lines of all the
specified files together and writes the result to the standard
output.
|
R |
sort(SortOptions options,
Input... inputs)
Sorts, merges, or sequence checks the lines the lines of all the
specified inputs together and writes the result to the standard
output.
|
R |
sort(SortOptions options,
String... paths)
Sorts, merges, or sequence checks the lines the lines of all the
specified files together and writes the result to the standard
output.
|
R |
sort(String... args)
Sort the lines of all the specified files together and writes the
result to the standard output.
|
R sort()
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort.
<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(String... args)
Options can be specified by acronym (with a leading dash "-") or by long name (with two leading dashes "--"). Operands other than the default "--paths" operand have to be prefixed with the operand name.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
args
- String arguments defining the options and operands for the command.
Options can be specified by acronym (with a leading dash "-") or by
long name (with two leading dashes "--"). Operands other than the
default "--paths" operand have to be prefixed with the operand
name (e.g. "--comparator" for a subsequent comparator operand value).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(File... files)
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
files
- The files to be sorted or merged; relative paths are not resolved
(use the string paths argument to enable relative path resolving
based on the current working directory).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(Input... inputs)
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different inputs, the index of the input in the arguments list defines the ordering of the lines.
inputs
- The inputs to be sorted or merged.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(Comparator<? super Line> comparator)
Line comparisons are based on the specified comparator
.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort.
comparator
- The comparator to use for the line comparisons.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(Comparator<? super Line> comparator, File... files)
Line comparisons are based on the specified comparator
.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
comparator
- The comparator to use for the line comparisons.files
- The files to be sorted or merged; relative paths are not resolved
(use the string paths argument to enable relative path resolving
based on the current working directory).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(Comparator<? super Line> comparator, String... paths)
Line comparisons are based on the specified comparator
.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
comparator
- The comparator to use for the line comparisons.paths
- Path names of the files to be sorted, merged, or checked; wildcards *
and ? are supported; relative paths are resolved on the
basis of the current working directory.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(Comparator<? super Line> comparator, Input... inputs)
Line comparisons are based on the specified comparator
.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different inputs, the index of the input in the arguments list defines the ordering of the lines.
comparator
- The comparator to use for the line comparisons.inputs
- The inputs to be sorted or merged.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options)
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort.
options
- The options for the sort command.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, File... files)
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
options
- The options for the sort command.files
- The files to be sorted or merged; relative paths are not resolved
(use the string paths argument to enable relative path resolving
based on the current working directory).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, String... paths)
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
options
- The options for the sort command.paths
- Path names of the files to be sorted, merged, or checked; wildcards *
and ? are supported; relative paths are resolved on the
basis of the current working directory.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, Input... inputs)
Comparisons are based on the entire line without line ending. The collating sequence of the current locale is used to perform the comparisons.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different inputs, the index of the input in the arguments list defines the ordering of the lines.
options
- The options for the sort command.inputs
- The inputs to be sorted or merged.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, Comparator<? super Line> comparator)
Line comparisons are based on the specified comparator
.
All comparison related options are ignored except for
--reverse
.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort.
options
- The options for the sort command.comparator
- The comparator to use for the line comparisons.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, Comparator<? super Line> comparator, File... files)
Line comparisons are based on the specified comparator
.
All comparison related options except for --reverse
are
ignored.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
options
- The options for the sort command.comparator
- The comparator to use for the line comparisons.files
- The files to be sorted or merged; relative paths are not resolved
(use the string paths argument to enable relative path resolving
based on the current working directory).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, Comparator<? super Line> comparator, String... paths)
Line comparisons are based on the specified comparator
.
All comparison related options except for --reverse
are
ignored.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different input files, the index of the file in the input arguments list defines the ordering of the lines.
options
- The options for the sort command.comparator
- The comparator to use for the line comparisons.paths
- Path names of the files to be sorted, merged, or checked; wildcards *
and ? are supported; relative paths are resolved on the
basis of the current working directory.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsR sort(SortOptions options, Comparator<? super Line> comparator, Input... inputs)
Line comparisons are based on the specified comparator
.
All comparison related options except for --reverse
are
ignored.
The sort algorithm used is guaranteed to be stable: lines considered equal will not be reordered as a result of the sort. If two lines originate from different inputs, the index of the input in the arguments list defines the ordering of the lines.
options
- The options for the sort command.comparator
- The comparator to use for the line comparisons.inputs
- The inputs to be sorted or merged.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsCopyright © 2024. All rights reserved.