Class Version

    • Method Detail

      • getMajor

        public int getMajor()
        Retrieves the major version.
        Returns:
        the major version
      • getMinor

        public int getMinor()
        Retrieves the minor version.
        Returns:
        the minor version
      • getPatch

        public OptionalInt getPatch()
        Retrieves the patch version, if available.
        Returns:
        an OptionalInt containing the patch version, or an empty OptionalInt if not present
      • getLabel

        public Optional<String> getLabel()
        Retrieves the pre-release label, if available.
        Returns:
        an Optional containing the label, or an empty Optional if not present
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object