Class LifecycleInfo

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LifecycleInfo>

    public class LifecycleInfo
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<LifecycleInfo>
    Version-lifecycle milestones for a packaging entity. Each milestone is independently optional; further milestones (e.g. stableSince, removedSince) may be added without changing dependent types.
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.packaging.LifecycleInfo type.
      • AVAILABLE_SINCE

        public static final Name AVAILABLE_SINCE
        Name of the hydra.packaging.LifecycleInfo.availableSince field.
      • DEPRECATED_SINCE

        public static final Name DEPRECATED_SINCE
        Name of the hydra.packaging.LifecycleInfo.deprecatedSince field.
      • availableSince

        public final Optional<Version> availableSince
        The version in which the entity was introduced, if known.
      • deprecatedSince

        public final Optional<Version> deprecatedSince
        The version in which the entity was deprecated, if applicable.
    • Constructor Detail

      • LifecycleInfo

        public LifecycleInfo​(Optional<Version> availableSince,
                             Optional<Version> deprecatedSince)
        Constructs an immutable LifecycleInfo.
        Parameters:
        availableSince - The version in which the entity was introduced, if known.
        deprecatedSince - The version in which the entity was deprecated, if applicable.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        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
      • compareTo

        public int compareTo​(LifecycleInfo other)
        Specified by:
        compareTo in interface java.lang.Comparable<LifecycleInfo>