Interface Processor<V>

  • 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 Processor<V>
    Performs a transformation on a value annotated with a specific type.
    Since:
    4.0.0
    • Method Detail

      • process

        void process​(V value,
                     ConfigurationNode destination)
        Transform the output node on write.
        Parameters:
        value - source value
        destination - destination node
        Since:
        4.0.0
      • localizedComments

        static Processor.Factory<Comment,​java.lang.Object> localizedComments​(java.util.ResourceBundle source)
        Apply localized comments from Comment annotation on save.

        The comment's value will be treated as a key into source, resolved to the system default locale. Missing keys will be written literally to node.

        Parameters:
        source - source bundle for comments
        Returns:
        a new processor factory
        Since:
        4.0.0