Class ImmutableEventParameter

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.model.EventParameter

    public final class ImmutableEventParameter
    extends java.lang.Object
    implements org.opennms.integration.api.v1.model.EventParameter
    An immutable implementation of EventParameter that enforces deep immutability.
    • Method Detail

      • newInstance

        public static ImmutableEventParameter newInstance​(java.lang.String name,
                                                          java.lang.String value)
      • immutableCopy

        public static org.opennms.integration.api.v1.model.EventParameter immutableCopy​(org.opennms.integration.api.v1.model.EventParameter eventParameter)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.opennms.integration.api.v1.model.EventParameter
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface org.opennms.integration.api.v1.model.EventParameter
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object