Package org.jboss.classloading.spi.version

Examples of org.jboss.classloading.spi.version.Version


*/
public class MyVersionToMyVersionComparator implements VersionComparator<MyVersion, MyVersion>
{
   public int compare(MyVersion one, MyVersion two)
   {
      Version version1 = Version.parseVersion(one.getVersion());
      Version version2 = Version.parseVersion(two.getVersion());
      return version1.compareTo(version2);
   }
View Full Code Here


  
   protected void testVersionRangeFromString(String low)
   {
      testVersionRange(low);
     
      Version lowVersion = null;
      if (low != null)
         lowVersion = Version.parseVersion(low);
      testVersionRange(lowVersion);
   }
View Full Code Here

  
   protected void testVersionRangeFromString(String low, String high)
   {
      testVersionRange(low, high);
     
      Version lowVersion = null;
      if (low != null)
         lowVersion = Version.parseVersion(low);
      Version highVersion = null;
      if (high != null)
         highVersion = Version.parseVersion(high);
      testVersionRange(lowVersion, highVersion);
   }
View Full Code Here

  
   protected void testVersionRangeFromString(String low, boolean lowInclusive, String high, boolean highInclusive)
   {
      testVersionRange(low, lowInclusive, high, highInclusive);
     
      Version lowVersion = null;
      if (low != null)
         lowVersion = Version.parseVersion(low);
      Version highVersion = null;
      if (high != null)
         highVersion = Version.parseVersion(high);
      testVersionRange(lowVersion, lowInclusive, highVersion, highInclusive);
   }
View Full Code Here

  
   protected void assertBadVersionRangeFromString(String low, String high)
   {
      assertBadVersionRange(low, high);

      Version lowVersion = null;
      if (low != null)
         lowVersion = Version.parseVersion(low);
      Version highVersion = null;
      if (high != null)
         highVersion = Version.parseVersion(high);
      assertBadVersionRange(lowVersion, highVersion);
   }
View Full Code Here

  
   protected void assertBadVersionRangeFromString(String low, boolean lowInclusive, String high, boolean highInclusive)
   {
      assertBadVersionRange(low, lowInclusive, high, highInclusive);

      Version lowVersion = null;
      if (low != null)
         lowVersion = Version.parseVersion(low);
      Version highVersion = null;
      if (high != null)
         highVersion = Version.parseVersion(high);
      assertBadVersionRange(lowVersion, lowInclusive, highVersion, highInclusive);
   }
View Full Code Here

  
   protected void testEqualsFromString(String low1, boolean low1Inclusive, String high1, boolean high1Inclusive, String low2, boolean low2Inclusive, String high2, boolean high2Inclusive, boolean result)
   {
      testEquals(low1, low1Inclusive, high1, high1Inclusive, low2, low2Inclusive, high2, high2Inclusive, result);
     
      Version versionLow1 = null;
      if (low1 != null)
         versionLow1 = Version.parseVersion(low1);
      Version versionHigh1 = null;
      if (high1 != null)
         versionHigh1 = Version.parseVersion(high1);
      Version versionLow2 = null;
      if (low2 != null)
         versionLow2 = Version.parseVersion(low2);
      Version versionHigh2 = null;
      if (high2 != null)
         versionHigh2 = Version.parseVersion(high2);
      testEquals(versionLow1, low1Inclusive, versionHigh1, high1Inclusive, versionLow2, low2Inclusive, versionHigh2, high2Inclusive, result);
   }
View Full Code Here

  
   protected void testIsInRangeFromString(String low, boolean lowInclusive, String high, boolean highInclusive, String test, boolean result)
   {
      testIsInRange(low, lowInclusive, high, highInclusive, test, result);

      Version lowVersion = null;
      if (low != null)
         lowVersion = Version.parseVersion(low);
      Version highVersion = null;
      if (high != null)
         highVersion = Version.parseVersion(high);
      Version version = Version.parseVersion(test);
      testIsInRange(lowVersion, lowInclusive, highVersion, highInclusive, version, result);
   }
View Full Code Here

  
   protected void testIsConsistentFromString(String low1, boolean lowInclusive1, String high1, boolean highInclusive1, String low2, boolean lowInclusive2, String high2, boolean highInclusive2, boolean result)
   {
      testIsConsistent(low1, lowInclusive1, high1, highInclusive1, low2, lowInclusive2, high2, highInclusive2, result);

      Version lowVersion1 = null;
      if (low1 != null)
         lowVersion1 = Version.parseVersion(low1);
      Version highVersion1 = null;
      if (high1 != null)
         highVersion1 = Version.parseVersion(high1);
      Version lowVersion2 = null;
      if (low2 != null)
         lowVersion2 = Version.parseVersion(low2);
      Version highVersion2 = null;
      if (high2 != null)
         highVersion2 = Version.parseVersion(high2);
      testIsConsistent(lowVersion1, lowInclusive1, highVersion1, highInclusive1, lowVersion2, lowInclusive2, highVersion2, highInclusive2, result);
   }
View Full Code Here

*/
public class TestStringToMyVersionComparator implements VersionComparator<String, MyVersion>
{
   public int compare(String one, MyVersion two)
   {
      Version version1 = Version.parseVersion(one);
      Version version2 = Version.parseVersion(two.getVersion());
      return version1.compareTo(version2);
   }
View Full Code Here

TOP

Related Classes of org.jboss.classloading.spi.version.Version

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.