Package adams.docker
Class DockerImage
- java.lang.Object
-
- adams.docker.DockerImage
-
- All Implemented Interfaces:
Serializable
,Comparable<DockerImage>
public class DockerImage extends Object implements Serializable, Comparable<DockerImage>
Simple container for docker images.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_Created
when the image was created.protected String
m_ImageID
the image ID (hash).protected String
m_Repository
the repository this image is from.protected String
m_Size
the size of the image.protected String
m_Tag
the tag of this image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DockerImage o)
Compares itself with the other image.boolean
equals(Object o)
Checks whether the objects are equal.String
getCreated()
Returns the created information.String
getImageID()
Returns the image ID (hash).String
getRepository()
Returns the repository.String
getSize()
Returns the size.String
getTag()
Returns the tag.int
hashCode()
Generates a hash code.
-
-
-
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.
-
-
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 interfaceComparable<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 classObject
- Parameters:
o
- the object to compare with- Returns:
- true if the same content
- See Also:
compareTo(DockerImage)
-
-