接口 LibraryCoordinates
public interface LibraryCoordinates
Encapsulates information about the artifact coordinates of a library.
- 从以下版本开始:
- 2.3.0
- 作者:
- Scott Frederick, Phillip Webb
-
方法概要
修饰符和类型方法说明Return the artifact ID of the coordinates.Return the group ID of the coordinates.Return the version of the coordinates.static LibraryCoordinatesFactory method to createLibraryCoordinateswith the specified values.static StringtoStandardNotationString(LibraryCoordinates coordinates) Utility method that returns the given coordinates using the standardgroup:artifact:versionform.
-
方法详细资料
-
getGroupId
String getGroupId()Return the group ID of the coordinates.- 返回:
- the group ID
-
getArtifactId
String getArtifactId()Return the artifact ID of the coordinates.- 返回:
- the artifact ID
-
getVersion
String getVersion()Return the version of the coordinates.- 返回:
- the version
-
of
Factory method to createLibraryCoordinateswith the specified values.- 参数:
groupId- the group IDartifactId- the artifact IDversion- the version- 返回:
- a new
LibraryCoordinatesinstance
-
toStandardNotationString
Utility method that returns the given coordinates using the standardgroup:artifact:versionform.- 参数:
coordinates- the coordinates to convert (may benull)- 返回:
- the standard notation form or
"::"when the coordinates are null
-