Class SemVerConstraint<E extends ConstraintPattern<? extends Enum<?>>>

Type Parameters:
E - Definition of constraint pattern that available in the subclass.
All Implemented Interfaces:
Serializable, SemVerDetermineInRage

public abstract class SemVerConstraint<E extends ConstraintPattern<? extends Enum<?>>> extends SemVerRange.NullableSemVerRange
Version constraint is a definition of SemVer range which bounding the version to ensure compatibility. This, class in extended from SemVerRange.NullableSemVerRange with more complicated detection to determine which SemVer can be accepted depending on different rules.
Since:
1.0.0
See Also:
  • Constructor Details

    • SemVerConstraint

      protected SemVerConstraint(@Nonnull E constraintPattern, @Nullable String rawConstraint, @Nullable SemVerRangeNode start, @Nullable SemVerRangeNode end)
      Create version constraint of SemVer.
      All implemented subclass should keep this constructor as private scope.
      Parameters:
      constraintPattern - An ConstraintPattern that applied from parser.
      rawConstraint - The version constraint that inserted by user.
      start - Start of the version range.
      end - End of the version range.
  • Method Details