Class NumberFormattingTransformer<T>

  • All Implemented Interfaces:
    org.apache.commons.collections4.Transformer<T,​java.lang.String>

    public class NumberFormattingTransformer<T>
    extends java.lang.Object
    implements org.apache.commons.collections4.Transformer<T,​java.lang.String>
    Transforms inputs to String representations by chaining an input Number-generating Transformer with an internal NumberFormat instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberFormattingTransformer​(org.apache.commons.collections4.Transformer<T,​? extends java.lang.Number> values)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String transform​(T input)
      Returns a formatted string for the input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NumberFormattingTransformer

        public NumberFormattingTransformer​(org.apache.commons.collections4.Transformer<T,​? extends java.lang.Number> values)
    • Method Detail

      • transform

        public java.lang.String transform​(T input)
        Returns a formatted string for the input.
        Specified by:
        transform in interface org.apache.commons.collections4.Transformer<T,​java.lang.String>