Class ItemNameFormatter

  • All Implemented Interfaces:
    Formatter<java.lang.String>, java.util.function.Function<java.lang.String,​java.lang.String>

    public class ItemNameFormatter
    extends java.lang.Object
    implements Formatter<java.lang.String>
    Formatter for Item names, that capitalizes each part and separates them with spaces instead of underscores.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • ItemNameFormatter

        public ItemNameFormatter()
    • Method Detail

      • apply

        public java.lang.String apply​(java.lang.String name)
        Specified by:
        apply in interface java.util.function.Function<java.lang.String,​java.lang.String>