Package land.oras
Class ArtifactType
java.lang.Object
land.oras.ArtifactType
Class for artifact type
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ArtifactType
Create an artifact typeGet the media typeint
hashCode()
toString()
static ArtifactType
unknown()
Create an unknown artifact type
-
Method Details
-
getMediaType
Get the media type- Returns:
- The media type
-
from
Create an artifact type- Parameters:
artifactType
- The artifact type. Can be null- Returns:
- The artifact type
-
unknown
Create an unknown artifact type- Returns:
- The unknown artifact type
-
equals
-
hashCode
public int hashCode() -
toString
-