Class ImmutableGenericTypeResource

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.collectors.resource.GenericTypeResource, org.opennms.integration.api.v1.collectors.resource.Resource

    public final class ImmutableGenericTypeResource
    extends java.lang.Object
    implements org.opennms.integration.api.v1.collectors.resource.GenericTypeResource
    An immutable implementation of GenericTypeResource that enforces deep immutability.
    • Method Detail

      • newBuilderFrom

        public static ImmutableGenericTypeResource.Builder newBuilderFrom​(org.opennms.integration.api.v1.collectors.resource.GenericTypeResource genericTypeResource)
      • immutableCopy

        public static org.opennms.integration.api.v1.collectors.resource.GenericTypeResource immutableCopy​(org.opennms.integration.api.v1.collectors.resource.GenericTypeResource genericTypeResource)
      • getNodeResource

        public org.opennms.integration.api.v1.collectors.resource.NodeResource getNodeResource()
        Specified by:
        getNodeResource in interface org.opennms.integration.api.v1.collectors.resource.GenericTypeResource
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface org.opennms.integration.api.v1.collectors.resource.GenericTypeResource
      • getInstance

        public java.lang.String getInstance()
        Specified by:
        getInstance in interface org.opennms.integration.api.v1.collectors.resource.GenericTypeResource
      • getResourceType

        public org.opennms.integration.api.v1.collectors.resource.Resource.Type getResourceType()
        Specified by:
        getResourceType in interface org.opennms.integration.api.v1.collectors.resource.Resource
      • 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