Interface ItemReplacer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ItemReplacer
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Replaces a placeholder in an item.
  • Method Details

    • replace

      @Nullable @Nullable String replace(PlaceholderInfo info)
      Replaces a placeholder in an item.
      Parameters:
      info - the PlaceholderInfo context object
      Returns:
      the replaced string, or null if the placeholder should not be replaced