Examples of Version


Examples of org.springframework.data.util.Version

    this.minVersion = min;
    this.maxVersion = max;
  }

  public static MongoVersionRule any() {
    return new MongoVersionRule(new Version(0, 0, 0), new Version(9999, 9999, 9999));
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.internal.model.namespaces.ToolingAwareNamespacePlugins.Version

  /**
   * {@inheritDoc}
   */
  protected String getDefaultUri() {
    String defaultUri = null;
    Version version = Version.MINIMUM_VERSION;
    for (String uri : uris) {
      Version tempVersion = Version.MINIMUM_VERSION;
      Matcher matcher = versionPattern.matcher(uri);
      if (matcher.matches()) {
        tempVersion = new Version(matcher.group(1));
      }
      if (tempVersion.compareTo(version) >= 0) {
        version = tempVersion;
        defaultUri = uri;
      }
    }
    return defaultUri;
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.namespaces.DefaultNamespaceDefinition.Version

    return namespaceDefinitions;
  }
 
  private static boolean isSpring31(String locationUri) {
    Version minimum = new Version("3.1");
    Version temp = Version.MINIMUM_VERSION;
    Matcher matcher = DefaultNamespaceDefinition.VERSION_PATTERN.matcher(locationUri);
    if (matcher.matches()) {
      temp = new Version(matcher.group(1));
    }
    if (temp.compareTo(minimum) >= 0) {
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.switchyard.common.version.Version

    }

    @Test
    public void testEquals() {
        VersionFactory factory = VersionFactory.instance();
        final Version expected = factory.getVersion(SWITCHYARD_COMMON);
        Version actual = factory.getVersion(Projects.create("org.switchyard", "switchyard-common"));
        assertEquals(expected, actual);
        actual = factory.getVersion(SWITCHYARD, new Query(PROJECT_ARTIFACT_ID, "switchyard-common"));
        assertEquals(expected, actual);
        actual = factory.getVersion(new Query(SPECIFICATION_TITLE, "SwitchYard: Common"));
        assertEquals(expected, actual);
View Full Code Here

Examples of org.terasology.naming.Version

        this.server = new ServerImpl(networkSystem, channelHandlerContext.getChannel());
        server.setServerInfo(message);

        // Request missing modules
        for (NetData.ModuleInfo info : message.getModuleList()) {
            if (null == moduleManager.getRegistry().getModule(new Name(info.getModuleId()), new Version(info.getModuleVersion()))) {
                missingModules.add(info.getModuleId().toLowerCase(Locale.ENGLISH));
            }
        }

        if (missingModules.isEmpty()) {
View Full Code Here

Examples of org.usb4java.Version

     */
    @Test
    public void testGetVersion()
    {
        assumeUsbTestsEnabled();
        final Version version = LibUsb.getVersion();
        assertNotNull(version);
        assertEquals(1, version.major());
        assertEquals(0, version.minor());
        assertTrue((version.micro() > 0) && (version.micro() < 100));
        assertNotNull(version.rc());
        assertTrue(version.toString().startsWith("1.0."));
    }
View Full Code Here

Examples of org.wiztools.appupdate.Version

        }
       
        // Verify version:
        try {
            final VersionUrl data = VersionWSUtil.getLatestVersion(UPDATE_URL);
            Version latestVersion = data.getVersion();
            Version currentVersion = new VersionImpl(RCConstants.VERSION);
           
            // Newer version available:
            if(latestVersion.isGreaterThan(currentVersion)) {
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
View Full Code Here

Examples of org.yaml.snakeyaml.DumperOptions.Version

            } else if (className.equals("DocumentEndEvent")) {
                value = new DocumentEndEvent(null, null, false);
            } else if (className.equals("DocumentStartEvent")) {
                Map<String, String> tags = (Map<String, String>) mapping.get("tags");
                List<Integer> versionList = (List<Integer>) mapping.get("version");
                Version version = null;
                // TODO ???
                if (versionList != null) {
                    Integer major = versionList.get(0).intValue();
                    if (major != 1) {
                        throw new YAMLException("Unsupported version.");
View Full Code Here

Examples of pivot.util.Version

import pivot.util.Version;

public class VersionTest {
    public static void main(String[] args) {
        Version version = Version.decode(System.getProperty("java.version"));
        System.out.println(version);

        Version version_1_5_0_13 = new Version(1, 5, 0, 13);
        System.out.println(version.compareTo(version_1_5_0_13));

        Version version_1_4_1_5 = new Version(1, 4, 1, 5);
        System.out.println(version.compareTo(version_1_4_1_5));

        Version version_1_6_0_10 = new Version(1, 6, 0, 10);
        System.out.println(version.compareTo(version_1_6_0_10));

        Version maxVersion = new Version(0x7f, 0xff, 0xff, 0xff);
        System.out.println(maxVersion.compareTo(version));
    }
View Full Code Here

Examples of ro.fortsoft.pf4j.Version

    this.runtimeManager = runtimeManager;

    this.pf4j = new DefaultPluginManager(dir);

    try {
      Version systemVersion = Version.createVersion(Constants.getVersion());
      pf4j.setSystemVersion(systemVersion);
    } catch (Exception e) {
      logger.error(null, e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.