class VersionMatcher implements RequirementMatcher {
        DefaultArtifactVersion version;

        private VersionMatcher(String version) {
            this.version = new DefaultArtifactVersion(version);
        }

        @Override
        public boolean matches(String requirement) {<FILL_FUNCTION_BODY>}

        @Override
        public String toString() {
            return version.toString();
        }
    }

            try {
                VersionRange range = VersionRange.createFromVersionSpec(requirement);
                if (range.hasRestrictions()) {
                    return range.containsVersion(version);
                } else {
                    return range.getRecommendedVersion().compareTo(version) == 0;
                }
            } catch (InvalidVersionSpecificationException ex) {
                return false;
            }
        
<no_super_class>