Class SMFFilterCommandModule

    • Method Detail

      • withName

        public final SMFFilterCommandModule withName​(java.lang.String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name
        Returns:
        A modified copy of the this object
      • withParsers

        public final SMFFilterCommandModule withParsers​(java.util.Map<java.lang.String,​? extends SMFFilterCommandParserType> entries)
        Copy the current immutable object by replacing the parsers map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        entries - The entries to be added to the parsers map
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of SMFFilterCommandModule that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: name, parsers.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value SMFFilterCommandModule with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • of

        public static SMFFilterCommandModule of​(java.lang.String name,
                                                java.util.Map<java.lang.String,​? extends SMFFilterCommandParserType> parsers)
        Construct a new immutable SMFFilterCommandModule instance.
        Parameters:
        name - The value for the name attribute
        parsers - The value for the parsers attribute
        Returns:
        An immutable SMFFilterCommandModule instance
      • copyOf

        public static SMFFilterCommandModule copyOf​(SMFFilterCommandModuleType instance)
        Creates an immutable copy of a SMFFilterCommandModuleType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable SMFFilterCommandModule instance
      • builder

        public static SMFFilterCommandModule.Builder builder()
        Creates a builder for SMFFilterCommandModule.
         SMFFilterCommandModule.builder()
            .setName(String) // required name
            .putParsers|putAllParsers(String => com.io7m.smfj.processing.api.SMFFilterCommandParserType) // parsers mappings
            .build();
         
        Returns:
        A new SMFFilterCommandModule builder