Class ListReplacer

  • All Implemented Interfaces:
    Replacer

    public class ListReplacer
    extends java.lang.Object
    implements Replacer
    A replacer that maintains a list of replacers and simply concatenates their results.
    Version:
    1.0
    Author:
    Andreas
    • Constructor Summary

      Constructors 
      Constructor Description
      ListReplacer​(java.util.List<?> list, java.lang.String unknown)
      Creates new ListReplacer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a description for the user of what this replacer does.
      java.lang.Object getReplacement​(java.lang.Object o)
      Concatenates results of sub-replacers.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • buffer

        protected java.lang.StringBuffer buffer
      • list

        protected java.util.List<?> list
      • unknown

        protected java.lang.String unknown
      • evolved

        protected java.lang.String evolved
      • numberFormat

        protected static java.text.NumberFormat numberFormat
    • Constructor Detail

      • ListReplacer

        public ListReplacer​(java.util.List<?> list,
                            java.lang.String unknown)
        Creates new ListReplacer
    • Method Detail

      • toString

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