test_class.file: interactivespaces-core/src/test/java/interactivespaces/resource/VersionTest.java
test_class.identifier: VersionTest
test_case.body: @Test
    public void testVersionRangeToString() {
      Assert.assertEquals("1.8.3", new VersionRange(new Version(1, 8, 3)).toString());
      Assert.assertEquals("[1.8.3, 1.8.4]",
          new VersionRange(new Version(1, 8, 3), new Version(1, 8, 4), true).toString());
      Assert.assertEquals("[1.8.3, 1.8.4)",
          new VersionRange(new Version(1, 8, 3), new Version(1, 8, 4), false).toString());
    }
test_case.class_method_signature: VersionTest.testVersionRangeToString()
test_case.full_signature: @Test public void testVersionRangeToString()
test_case.identifier: testVersionRangeToString
test_case.invocations: assertEquals toString assertEquals toString assertEquals toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testVersionRangeToString()
focal_class.declarator: VERSION_SECTION_SEPARATOR = '.'
focal_class.modifier: public static final
focal_class.original_string: public static final char VERSION_SECTION_SEPARATOR = '.';
focal_class.type: char
focal_class.var_name: VERSION_SECTION_SEPARATOR
focal_class.declarator: QUALIFIER_REGEX = "[a-zA-Z0-9_\\-]+"
focal_class.modifier: public static final
focal_class.original_string: public static final String QUALIFIER_REGEX = "[a-zA-Z0-9_\\-]+";
focal_class.type: String
focal_class.var_name: QUALIFIER_REGEX
focal_class.declarator: VERSION_PATTERN = Pattern.compile("^([0-9]+)(\\.[0-9]+)?(\\.[0-9]+)?(\\."
        + QUALIFIER_REGEX + ")?$")
focal_class.modifier: public static final
focal_class.original_string: public static final Pattern VERSION_PATTERN = Pattern.compile("^([0-9]+)(\\.[0-9]+)?(\\.[0-9]+)?(\\."
        + QUALIFIER_REGEX + ")?$");
focal_class.type: Pattern
focal_class.var_name: VERSION_PATTERN
focal_class.declarator: REGEX_GROUP_NUMBER_MAJOR = 1
focal_class.modifier: public static final
focal_class.original_string: public static final int REGEX_GROUP_NUMBER_MAJOR = 1;
focal_class.type: int
focal_class.var_name: REGEX_GROUP_NUMBER_MAJOR
focal_class.declarator: REGEX_GROUP_NUMBER_MINOR = 2
focal_class.modifier: public static final
focal_class.original_string: public static final int REGEX_GROUP_NUMBER_MINOR = 2;
focal_class.type: int
focal_class.var_name: REGEX_GROUP_NUMBER_MINOR
focal_class.declarator: REGEX_GROUP_NUMBER_MICRO = 3
focal_class.modifier: public static final
focal_class.original_string: public static final int REGEX_GROUP_NUMBER_MICRO = 3;
focal_class.type: int
focal_class.var_name: REGEX_GROUP_NUMBER_MICRO
focal_class.declarator: REGEX_GROUP_NUMBER_QUALIFIER = 4
focal_class.modifier: public static final
focal_class.original_string: public static final int REGEX_GROUP_NUMBER_QUALIFIER = 4;
focal_class.type: int
focal_class.var_name: REGEX_GROUP_NUMBER_QUALIFIER
focal_class.declarator: QUALIFIER_PATTERN = Pattern.compile("^" + QUALIFIER_REGEX + "$")
focal_class.modifier: public static final
focal_class.original_string: public static final Pattern QUALIFIER_PATTERN = Pattern.compile("^" + QUALIFIER_REGEX + "$");
focal_class.type: Pattern
focal_class.var_name: QUALIFIER_PATTERN
focal_class.declarator: VERSION_FORMAT_DESCRIPTION = "A version must be of the form major.minor.micro\n"
        + "where each section is a series of digits.\n"
        + "It can also be of the form major.minor.micro.qualifier where qualifier starts with\n"
        + "a letter or digit, and is followed by letters, digits, -,\n" + "or underscores."
focal_class.modifier: public static final
focal_class.original_string: public static final String VERSION_FORMAT_DESCRIPTION = "A version must be of the form major.minor.micro\n"
        + "where each section is a series of digits.\n"
        + "It can also be of the form major.minor.micro.qualifier where qualifier starts with\n"
        + "a letter or digit, and is followed by letters, digits, -,\n" + "or underscores.";
focal_class.type: String
focal_class.var_name: VERSION_FORMAT_DESCRIPTION
focal_class.declarator: major
focal_class.modifier: private final
focal_class.original_string: private final int major;
focal_class.type: int
focal_class.var_name: major
focal_class.declarator: minor
focal_class.modifier: private final
focal_class.original_string: private final int minor;
focal_class.type: int
focal_class.var_name: minor
focal_class.declarator: micro
focal_class.modifier: private final
focal_class.original_string: private final int micro;
focal_class.type: int
focal_class.var_name: micro
focal_class.declarator: qualifier
focal_class.modifier: private final
focal_class.original_string: private final String qualifier;
focal_class.type: String
focal_class.var_name: qualifier
focal_class.file: interactivespaces-core/src/main/java/interactivespaces/resource/Version.java
focal_class.identifier: Version
focal_class.interfaces: implements Comparable<Version>
focal_class.class_method_signature: Version.isLegalSyntax(String candidate)
focal_class.full_signature: public static boolean isLegalSyntax(String candidate)
focal_class.identifier: isLegalSyntax
focal_class.modifiers: public static
focal_class.parameters: (String candidate)
focal_class.return: boolean
focal_class.signature: boolean isLegalSyntax(String candidate)
focal_class.class_method_signature: Version.parseVersionIncludeNull(String version)
focal_class.full_signature: public static Version parseVersionIncludeNull(String version)
focal_class.identifier: parseVersionIncludeNull
focal_class.modifiers: public static
focal_class.parameters: (String version)
focal_class.return: Version
focal_class.signature: Version parseVersionIncludeNull(String version)
focal_class.class_method_signature: Version.parseVersion(String version)
focal_class.full_signature: public static Version parseVersion(String version)
focal_class.identifier: parseVersion
focal_class.modifiers: public static
focal_class.parameters: (String version)
focal_class.return: Version
focal_class.signature: Version parseVersion(String version)
focal_class.class_method_signature: Version.Version(int major, int minor, int micro, String qualifier)
focal_class.full_signature: public  Version(int major, int minor, int micro, String qualifier)
focal_class.identifier: Version
focal_class.modifiers: public
focal_class.parameters: (int major, int minor, int micro, String qualifier)
focal_class.signature:  Version(int major, int minor, int micro, String qualifier)
focal_class.class_method_signature: Version.Version(int major, int minor, int micro)
focal_class.full_signature: public  Version(int major, int minor, int micro)
focal_class.identifier: Version
focal_class.modifiers: public
focal_class.parameters: (int major, int minor, int micro)
focal_class.signature:  Version(int major, int minor, int micro)
focal_class.class_method_signature: Version.getMajor()
focal_class.full_signature: public int getMajor()
focal_class.identifier: getMajor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMajor()
focal_class.class_method_signature: Version.getMinor()
focal_class.full_signature: public int getMinor()
focal_class.identifier: getMinor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMinor()
focal_class.class_method_signature: Version.getMicro()
focal_class.full_signature: public int getMicro()
focal_class.identifier: getMicro
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMicro()
focal_class.class_method_signature: Version.getQualifier()
focal_class.full_signature: public String getQualifier()
focal_class.identifier: getQualifier
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getQualifier()
focal_class.class_method_signature: Version.lessThan(Version other)
focal_class.full_signature: public boolean lessThan(Version other)
focal_class.identifier: lessThan
focal_class.modifiers: public
focal_class.parameters: (Version other)
focal_class.return: boolean
focal_class.signature: boolean lessThan(Version other)
focal_class.class_method_signature: Version.lessThanOrEqual(Version other)
focal_class.full_signature: public boolean lessThanOrEqual(Version other)
focal_class.identifier: lessThanOrEqual
focal_class.modifiers: public
focal_class.parameters: (Version other)
focal_class.return: boolean
focal_class.signature: boolean lessThanOrEqual(Version other)
focal_class.class_method_signature: Version.greaterThan(Version other)
focal_class.full_signature: public boolean greaterThan(Version other)
focal_class.identifier: greaterThan
focal_class.modifiers: public
focal_class.parameters: (Version other)
focal_class.return: boolean
focal_class.signature: boolean greaterThan(Version other)
focal_class.class_method_signature: Version.greaterThanOrEqual(Version other)
focal_class.full_signature: public boolean greaterThanOrEqual(Version other)
focal_class.identifier: greaterThanOrEqual
focal_class.modifiers: public
focal_class.parameters: (Version other)
focal_class.return: boolean
focal_class.signature: boolean greaterThanOrEqual(Version other)
focal_class.class_method_signature: Version.incrementMajor()
focal_class.full_signature: public Version incrementMajor()
focal_class.identifier: incrementMajor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Version
focal_class.signature: Version incrementMajor()
focal_class.class_method_signature: Version.incrementMinor()
focal_class.full_signature: public Version incrementMinor()
focal_class.identifier: incrementMinor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Version
focal_class.signature: Version incrementMinor()
focal_class.class_method_signature: Version.incrementMicro()
focal_class.full_signature: public Version incrementMicro()
focal_class.identifier: incrementMicro
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Version
focal_class.signature: Version incrementMicro()
focal_class.class_method_signature: Version.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Version.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Version.compareTo(Version o)
focal_class.full_signature: @Override public int compareTo(Version o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (Version o)
focal_class.return: int
focal_class.signature: int compareTo(Version o)
focal_class.class_method_signature: Version.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Version.validate()
focal_class.full_signature: private void validate()
focal_class.identifier: validate
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void validate()
focal_method.body: @Override
    public String toString() {
      StringBuilder builder =
          new StringBuilder().append(major).append(VERSION_SECTION_SEPARATOR).append(minor)
              .append(VERSION_SECTION_SEPARATOR).append(micro);
  
      if (!qualifier.isEmpty()) {
        builder.append(VERSION_SECTION_SEPARATOR).append(qualifier);
      }
      return builder.toString();
    }
focal_method.class_method_signature: Version.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: append append append append append isEmpty append append toString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()