Package pivot.util

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

TOP

Related Classes of pivot.util.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.