Class ImmutableCollectionSet

  • All Implemented Interfaces:
    org.opennms.integration.api.v1.collectors.CollectionSet

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

      • newBuilderFrom

        public static ImmutableCollectionSet.Builder newBuilderFrom​(org.opennms.integration.api.v1.collectors.CollectionSet collectionSet)
      • immutableCopy

        public static org.opennms.integration.api.v1.collectors.CollectionSet immutableCopy​(org.opennms.integration.api.v1.collectors.CollectionSet collectionSet)
      • getCollectionSetResources

        public java.util.List<org.opennms.integration.api.v1.collectors.resource.CollectionSetResource> getCollectionSetResources()
        Specified by:
        getCollectionSetResources in interface org.opennms.integration.api.v1.collectors.CollectionSet
      • getTimeStamp

        public long getTimeStamp()
        Specified by:
        getTimeStamp in interface org.opennms.integration.api.v1.collectors.CollectionSet
      • getStatus

        public org.opennms.integration.api.v1.collectors.CollectionSet.Status getStatus()
        Specified by:
        getStatus in interface org.opennms.integration.api.v1.collectors.CollectionSet
      • 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