Class BuildInfo

java.lang.Object
com.irurueta.numerical.BuildInfo

public class BuildInfo extends Object
Contains build data of this library.
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      This class logger.
    • BUILD_INFO_PROPERTIES

      private static final String BUILD_INFO_PROPERTIES
      Location of properties file that contains build data. Build data is stored in this file, which is modified each time that compilation is run in the CI server.
      See Also:
    • BUILD_TIMESTAMP_KEY

      private static final String BUILD_TIMESTAMP_KEY
      Key to obtain build timestamp from properties file.
      See Also:
    • GROUP_ID_KEY

      private static final String GROUP_ID_KEY
      Key to obtain groupID of this library from properties file.
      See Also:
    • ARTIFACT_ID_KEY

      private static final String ARTIFACT_ID_KEY
      Key to obtain artifactId of this library from properties file.
      See Also:
    • VERSION_KEY

      private static final String VERSION_KEY
      Key to obtain version of this library from properties file.
      See Also:
    • BUILD_NUMBER_KEY

      private static final String BUILD_NUMBER_KEY
      Key to obtain build number from properties file.
      See Also:
    • COMMIT_KEY

      private static final String COMMIT_KEY
      Key to obtain build commit from properties file.
      See Also:
    • BRANCH_KEY

      private static final String BRANCH_KEY
      Key to obtain build branch from properties file.
      See Also:
    • TIMESTAMP_FORMAT

      private static final String TIMESTAMP_FORMAT
      Format for build timestamp.
      See Also:
    • reference

      private static SoftReference<BuildInfo> reference
      Singleton stored in a soft reference (to keep it cached in memory unless memory is claimed).
    • buildTimestamp

      private Date buildTimestamp
      Build timestamp.
    • groupId

      private String groupId
      GroupId of this library.
    • artifactId

      private String artifactId
      ArtifactId of this library.
    • version

      private String version
      Version of this library.
    • buildNumber

      private String buildNumber
      Build number.
    • commit

      private String commit
      Build commit.
    • branch

      private String branch
      Build branch.
  • Constructor Details

    • BuildInfo

      private BuildInfo()
      Constructor.
  • Method Details

    • getInstance

      public static BuildInfo getInstance()
      Obtains singleton instance.
      Returns:
      singleton instance.
    • getBuildTimestamp

      public Date getBuildTimestamp()
      Obtains build timestamp.
      Returns:
      build timestamp.
    • getGroupId

      public String getGroupId()
      Obtains groupId of this library.
      Returns:
      groupId of this library.
    • getArtifactId

      public String getArtifactId()
      Obtains artifactId of this library.
      Returns:
      artifactId of this library.
    • getVersion

      public String getVersion()
      Obtains version of this library.
      Returns:
      version of this library.
    • getBuildNumber

      public String getBuildNumber()
      Obtains build number.
      Returns:
      build number.
    • getCommit

      public String getCommit()
      Obtains build commit.
      Returns:
      build commit.
    • getBranch

      public String getBranch()
      Obtains build branch.
      Returns:
      build branch.