Class VersionMatcher


  • public class VersionMatcher
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      VersionMatcher()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean matches​(java.lang.String version, java.lang.String spec)
      Determine if a given version satisfies a version spec.
      • Methods inherited from class java.lang.Object

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

      • VersionMatcher

        public VersionMatcher()
    • Method Detail

      • matches

        public static boolean matches​(java.lang.String version,
                                      java.lang.String spec)
        Determine if a given version satisfies a version spec.
        Parameters:
        version - version to check
        spec - spec to check against (see VersionRange.createFromVersionSpec(String) for examples)
        Returns:
        true if the version satisfies the spec, false otherwise