Class PositiveIntOutputs


  • public final class PositiveIntOutputs
    extends Outputs<java.lang.Long>
    An FST Outputs implementation where each output is a non-negative long value.
    • Method Detail

      • common

        public java.lang.Long common​(java.lang.Long output1,
                                     java.lang.Long output2)
        Description copied from class: Outputs
        Eg common("foobar", "food") -> "foo"
        Specified by:
        common in class Outputs<java.lang.Long>
      • subtract

        public java.lang.Long subtract​(java.lang.Long output,
                                       java.lang.Long inc)
        Description copied from class: Outputs
        Eg subtract("foobar", "foo") -> "bar"
        Specified by:
        subtract in class Outputs<java.lang.Long>
      • add

        public java.lang.Long add​(java.lang.Long prefix,
                                  java.lang.Long output)
        Description copied from class: Outputs
        Eg add("foo", "bar") -> "foobar"
        Specified by:
        add in class Outputs<java.lang.Long>
      • write

        public void write​(java.lang.Long output,
                          DataOutput out)
                   throws java.io.IOException
        Description copied from class: Outputs
        Encode an output value into a DataOutput.
        Specified by:
        write in class Outputs<java.lang.Long>
        Throws:
        java.io.IOException
      • getNoOutput

        public java.lang.Long getNoOutput()
        Description copied from class: Outputs
        NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output
        Specified by:
        getNoOutput in class Outputs<java.lang.Long>
      • outputToString

        public java.lang.String outputToString​(java.lang.Long output)
        Specified by:
        outputToString in class Outputs<java.lang.Long>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object