接口 LibraryCoordinates


public interface LibraryCoordinates
Encapsulates information about the artifact coordinates of a library.
从以下版本开始:
2.3.0
作者:
Scott Frederick, Phillip Webb
  • 方法详细资料

    • 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

      static LibraryCoordinates of(String groupId, String artifactId, String version)
      Factory method to create LibraryCoordinates with the specified values.
      参数:
      groupId - the group ID
      artifactId - the artifact ID
      version - the version
      返回:
      a new LibraryCoordinates instance
    • toStandardNotationString

      static String toStandardNotationString(LibraryCoordinates coordinates)
      Utility method that returns the given coordinates using the standard group:artifact:version form.
      参数:
      coordinates - the coordinates to convert (may be null)
      返回:
      the standard notation form or "::" when the coordinates are null