Modifier and Type | Method and Description |
---|---|
Long |
add(Long prefix,
Long output)
Eg add("foo", "bar") -> "foobar"
|
Long |
common(Long output1,
Long output2)
Eg common("foo", "foobar") -> "foo"
|
Long |
getNoOutput()
NOTE: this output is compared with == so you must
ensure that all methods return the single object if
it's really no output
|
static PositiveIntOutputs |
getSingleton(boolean doShare) |
String |
outputToString(Long output) |
Long |
read(DataInput in) |
Long |
subtract(Long output,
Long inc)
Eg subtract("foobar", "foo") -> "bar"
|
String |
toString() |
void |
write(Long output,
DataOutput out) |
public static PositiveIntOutputs getSingleton(boolean doShare)
public Long common(Long output1, Long output2)
Outputs
public Long subtract(Long output, Long inc)
Outputs
public Long add(Long prefix, Long output)
Outputs
public void write(Long output, DataOutput out) throws IOException
write
in class Outputs<Long>
IOException
public Long read(DataInput in) throws IOException
read
in class Outputs<Long>
IOException
public Long getNoOutput()
Outputs
getNoOutput
in class Outputs<Long>
public String outputToString(Long output)
outputToString
in class Outputs<Long>