Class OsDetector.Release

  • Enclosing class:
    OsDetector

    public static class OsDetector.Release
    extends java.lang.Object
    Accessor to information about the current OS release.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Returns the release ID.
      java.lang.String getVersion()
      Returns the version ID.
      boolean isLike​(java.lang.String baseRelease)
      Returns true if this release is a variant of the given base release (for example, ubuntu is "like" debian).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the release ID.
      • getVersion

        public java.lang.String getVersion()
        Returns the version ID.
      • isLike

        public boolean isLike​(java.lang.String baseRelease)
        Returns true if this release is a variant of the given base release (for example, ubuntu is "like" debian).