Package adams.docker

Class DockerImage

    • Field Detail

      • m_Repository

        protected String m_Repository
        the repository this image is from.
      • m_Tag

        protected String m_Tag
        the tag of this image.
      • m_ImageID

        protected String m_ImageID
        the image ID (hash).
      • m_Created

        protected String m_Created
        when the image was created.
      • m_Size

        protected String m_Size
        the size of the image.
    • Constructor Detail

      • DockerImage

        public DockerImage​(String repository,
                           String tag,
                           String imageID,
                           String created,
                           String size)
        Initializes the container.
        Parameters:
        repository - the repository
        tag - the tag
        imageID - the image ID (hash)
        created - the created string
        size - the size
    • Method Detail

      • getRepository

        public String getRepository()
        Returns the repository.
        Returns:
        the repository
      • getTag

        public String getTag()
        Returns the tag.
        Returns:
        the tag
      • getImageID

        public String getImageID()
        Returns the image ID (hash).
        Returns:
        the hash
      • getCreated

        public String getCreated()
        Returns the created information.
        Returns:
        the created information
      • getSize

        public String getSize()
        Returns the size.
        Returns:
        the size
      • compareTo

        public int compareTo​(DockerImage o)
        Compares itself with the other image.
        Specified by:
        compareTo in interface Comparable<DockerImage>
        Parameters:
        o - the other image
        Returns:
        the comparison result
      • equals

        public boolean equals​(Object o)
        Checks whether the objects are equal.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare with
        Returns:
        true if the same content
        See Also:
        compareTo(DockerImage)
      • hashCode

        public int hashCode()
        Generates a hash code.
        Overrides:
        hashCode in class Object
        Returns:
        the hash