Interface LibraryCoordinates
public interface LibraryCoordinates
Encapsulates information about the artifact coordinates of a library.
- Since:
- 2.3.0
- Author:
- Scott Frederick, Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionReturn the artifact ID of the coordinates.Return the group ID of the coordinates.Return the version of the coordinates.static LibraryCoordinates
Factory method to createLibraryCoordinates
with the specified values.static String
toStandardNotationString
(LibraryCoordinates coordinates) Utility method that returns the given coordinates using the standardgroup:artifact:version
form.
-
Method Details
-
getGroupId
String getGroupId()Return the group ID of the coordinates.- Returns:
- the group ID
-
getArtifactId
String getArtifactId()Return the artifact ID of the coordinates.- Returns:
- the artifact ID
-
getVersion
String getVersion()Return the version of the coordinates.- Returns:
- the version
-
of
Factory method to createLibraryCoordinates
with the specified values.- Parameters:
groupId
- the group IDartifactId
- the artifact IDversion
- the version- Returns:
- a new
LibraryCoordinates
instance
-
toStandardNotationString
Utility method that returns the given coordinates using the standardgroup:artifact:version
form.- Parameters:
coordinates
- the coordinates to convert (may benull
)- Returns:
- the standard notation form or
"::"
when the coordinates are null
-