Interface SemVerDetermineInRange

All Known Implementing Classes:
SemVerConstraint, SemVerMultipleRange, SemVerRange

public interface SemVerDetermineInRange
This interface allows determining SemVer is in the range.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    isInRange(String semVer)
    Check this semVer is in the range.
    boolean
    isInRange(SemVer semVer)
    Check this semVer is in the range.
  • Method Details

    • isInRange

      boolean isInRange(@Nonnull SemVer semVer)
      Check this semVer is in the range.
      Mostly, pre-release version is not consider in the range. It will has proper document if this accepts pre-release of SemVer.
      Parameters:
      semVer - A version that to determine is in the constraint range.
      Returns:
      true if in range.
    • isInRange

      default boolean isInRange(@Nonnull String semVer) throws NonStandardSemVerException
      Check this semVer is in the range.
      Parameters:
      semVer - A version that to determine is in the constraint range.
      Returns:
      true if in range.
      Throws:
      NonStandardSemVerException - When semVer String can not be parsed.