Modifier and Type | Field and Description |
---|---|
protected static File |
STDOUT
Marker file, write to stdout.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractVennRunnable(boolean count,
boolean header)
Create a new abstract venn runnable with the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
count()
Return true to output count(s) only.
|
protected static <T> T |
defaultIfFound(Argument<T> argument,
T value0,
T value1,
T defaultValue)
Default to the specified default value if the argument was found and has a null
value or if the value matches either of
value0 or value1 . |
protected static <T> T |
defaultIfFound(Argument<T> argument,
T value0,
T value1,
T value2,
T defaultValue)
Default to the specified default value if the argument was found and has a null
value or if the value matches either of
value0 , value1 ,
or value2 . |
protected static <T> T |
defaultIfFound(Argument<T> argument,
T value0,
T value1,
T value2,
T value3,
T defaultValue)
Default to the specified default value if the argument was found and has a null
value or if the value matches either of
value0 , value1 ,
value2 , or value3 . |
protected boolean |
header()
Return true to output header(s).
|
protected static Set<String> |
read(File input)
Read a set of strings from the specified input file.
|
protected static void |
write(boolean write,
int size,
PrintWriter stdout)
Write the specified size to stdout.
|
protected static void |
write(boolean write,
Iterator<String> it,
PrintWriter stdout)
Write one value from the specified iterator to stdout.
|
protected static void |
write(boolean write,
String labelText,
PrintWriter stdout)
Write the specified label text to stdout.
|
protected void |
write(String headerText,
Set<String> view,
File file)
Write the specified set view to the specified file if valid.
|
protected static final File STDOUT
protected AbstractVennRunnable(boolean count, boolean header)
count
- true to output count(s) onlyheader
- true to ouput header(s)protected final boolean count()
protected final boolean header()
protected static final void write(boolean write, String labelText, PrintWriter stdout)
write
- true to writelabelText
- label text to writestdout
- stdoutprotected static final void write(boolean write, int size, PrintWriter stdout)
write
- true to writesize
- size to writestdout
- stdoutprotected static final void write(boolean write, Iterator<String> it, PrintWriter stdout)
write
- true to writeit
- iterator to write fromstdout
- stdoutprotected static final Set<String> read(File input)
input
- input fileprotected void write(String headerText, Set<String> view, File file)
headerText
- header textview
- viewfile
- fileprotected static final <T> T defaultIfFound(Argument<T> argument, T value0, T value1, T defaultValue)
value0
or value1
.T
- argument typeargument
- argumentvalue0
- first valuevalue1
- second valuedefaultValue
- default valuevalue0
or value1
protected static final <T> T defaultIfFound(Argument<T> argument, T value0, T value1, T value2, T defaultValue)
value0
, value1
,
or value2
.T
- argument typeargument
- argumentvalue0
- first valuevalue1
- second valuevalue2
- third valuedefaultValue
- default valuevalue0
, value1
,
or value2
protected static final <T> T defaultIfFound(Argument<T> argument, T value0, T value1, T value2, T value3, T defaultValue)
value0
, value1
,
value2
, or value3
.T
- argument typeargument
- argumentvalue0
- first valuevalue1
- second valuevalue2
- third valuevalue3
- fourth valuedefaultValue
- default valuevalue0
, value1
,
value2
, or value3
Copyright (c) 2010-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).