Package io.bdeploy.bhive.model
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Key
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
- Returns:
- the name of the key'd manifest
-
getTag
- Returns:
- the tag of the key'd manifest
-
directoryFriendlyName
-
compareTo
- Specified by:
compareToin interfaceComparable<Manifest.Key>
-
toString
-
parse
Parses a key from it'sStringrepresentation. -
hashCode
@Generated("Eclipse") public int hashCode() -
equals
-