Class MetaBuilder


  • public final class MetaBuilder
    extends Object
    A builder for creating Meta objects.
    Since:
    1.0.0
    • Constructor Detail

      • MetaBuilder

        public MetaBuilder()
        Constructs a new MetaBuilder object.
        Since:
        1.0.0
    • Method Detail

      • getEntries

        public Map<String,​String> getEntries()
        Returns all entries in this MetaBuilder object.
        Returns:
        all entries in this MetaBuilder object
        Since:
        1.0.0
      • addEntry

        public MetaBuilder addEntry​(String key,
                                    String value)
        Adds an entry to this MetaBuilder object.
        Parameters:
        key - the key of the entry
        value - the value of the entry
        Returns:
        this MetaBuilder object
        Throws:
        NullPointerException - if key or value is null
        IllegalArgumentException - if key is not a valid identifier
        Since:
        1.0.0