Class Outputs<T>

    • Constructor Detail

      • Outputs

        public Outputs()
    • Method Detail

      • common

        public abstract T common​(T output1,
                                 T output2)
        Eg common("foo", "foobar") -> "foo"
      • subtract

        public abstract T subtract​(T output,
                                   T inc)
        Eg subtract("foobar", "foo") -> "bar"
      • add

        public abstract T add​(T prefix,
                              T output)
        Eg add("foo", "bar") -> "foobar"
      • getNoOutput

        public abstract T getNoOutput()
        NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output
      • outputToString

        public abstract String outputToString​(T output)
      • merge

        public T merge​(T first,
                       T second)