Class Manifest.Key

java.lang.Object
io.bdeploy.bhive.model.Manifest.Key
All Implemented Interfaces:
Serializable, Comparable<Manifest.Key>
Enclosing class:
Manifest

public static final class Manifest.Key extends Object implements Serializable, Comparable<Manifest.Key>
Represents the unique ID of a manifest. Consists of a name and a tag.

Usually the tag will represent some form of version number, but there are no assumptions about the actual format.

See Also:
  • Constructor Details

    • Key

      public Key(String name, String tag)
      Creates a new key which can be used to create new manifests or lookup existing manifests which match the key. Note that name and tag are used to name filesystem objects ultimately, so they should not contain characters which cause issues in filesystems.
      Parameters:
      name - the name, may not contain ':' specifically, and any filesystem-problematic character in general.
      tag - the tag, may not contain ':' specifically, and any filesystem-problematic character in general.
  • Method Details

    • getName

      public String getName()
      Returns:
      the name of the key'd manifest
    • getTag

      public String getTag()
      Returns:
      the tag of the key'd manifest
    • directoryFriendlyName

      public String directoryFriendlyName()
    • compareTo

      public int compareTo(Manifest.Key o)
      Specified by:
      compareTo in interface Comparable<Manifest.Key>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parse

      public static Manifest.Key parse(String key)
      Parses a key from it's String representation.
    • hashCode

      @Generated("Eclipse") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      @Generated("Eclipse") public boolean equals(Object obj)
      Overrides:
      equals in class Object