Class CustomFormatter

java.lang.Object
be.dezijwegel.betteryaml.formatting.CustomFormatter

public class CustomFormatter
extends Object
  • Constructor Details

    • CustomFormatter

      public CustomFormatter()
  • Method Details

    • addFormatter

      public CustomFormatter addFormatter​(Class<?> type, IFormatter formatter)
      Allows public modification, will very likely remain unused
      Parameters:
      type - the class for which different formatting is desired
      formatter - the formatter we want to use for this type
      Returns:
      the CustomFormatter object, this allows chaining to achieve a builder-pattern-like behaviour
    • format

      public String format​(Object o, String serialised)