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 TypeMethodDescription@Nullable StringReturn the artifact ID of the coordinates.@Nullable StringReturn the group ID of the coordinates.@Nullable StringReturn the version of the coordinates.static LibraryCoordinatesFactory method to createLibraryCoordinateswith the specified values.static StringtoStandardNotationString(@Nullable LibraryCoordinates coordinates) Utility method that returns the given coordinates using the standardgroup:artifact:versionform.
-
Method Details
-
getGroupId
-
getArtifactId
@Nullable String getArtifactId()Return the artifact ID of the coordinates.- Returns:
- the artifact ID
-
getVersion
-
of
static LibraryCoordinates of(@Nullable String groupId, @Nullable String artifactId, @Nullable String version) Factory method to createLibraryCoordinateswith the specified values.- Parameters:
groupId- the group IDartifactId- the artifact IDversion- the version- Returns:
- a new
LibraryCoordinatesinstance
-
toStandardNotationString
Utility method that returns the given coordinates using the standardgroup:artifact:versionform.- Parameters:
coordinates- the coordinates to convert (may benull)- Returns:
- the standard notation form or
"::"when the coordinates are null
-