Class GavLabel


  • public class GavLabel
    extends Object
    Label used to mark a container belonging to a certain build.
    Since:
    31/03/15
    Author:
    roland
    • Constructor Detail

      • GavLabel

        public GavLabel​(String label)
        Construct from a given label
        Parameters:
        label - label as stored with the container
      • GavLabel

        public GavLabel​(String groupId,
                        String artifactId,
                        String version)
        Construct from maven coordinates and run ID. If the runId is null this label will.
        Parameters:
        groupId - Maven group
        artifactId - Maven artifact
        version - version
    • Method Detail

      • getKey

        public String getKey()
        Get the label name
        Returns:
        the label name to use to mark a container belonging to this build
      • getValue

        public String getValue()
        Get this label in string representation
        Returns:
        this label as string
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object