Examples of major()


Examples of org.apache.beehive.controls.api.versioning.Version.major()

            int majorPresent = -1;
            int minorPresent = -1;
            Version ciVersion = ci._version;
            if ( ciVersion != null )
            {
                majorPresent = ciVersion.major();
                minorPresent = ciVersion.minor();

                if ( majorRequired <= majorPresent &&
                     (minorRequired < 0 || minorRequired <= minorPresent) )
                {
View Full Code Here

Examples of org.apache.beehive.controls.api.versioning.VersionRequired.major()

        VersionRequired versionRequired = f.getAnnotation(VersionRequired.class);
        Version versionPresent = controlIntf.getAnnotation(Version.class);

        if ( versionRequired != null )
        {
            int majorRequired = versionRequired.major();
            int minorRequired = versionRequired.minor();

            if ( majorRequired < 0 )    // no real version requirement
                return;
View Full Code Here

Examples of org.apache.beehive.controls.api.versioning.VersionRequired.major()

        Version versionPresent = controlIntf.getAnnotation(Version.class);

        if (versionRequired != null) {
            int majorRequired = -1;
            try {
                majorRequired = versionRequired.major();
            }
            catch(NullPointerException ignore) {
                /*
                the major version annotation is required and if unspecified, will
                throw an NPE when it is quereid but not provided.  this error will
View Full Code Here

Examples of org.apache.beehive.controls.api.versioning.VersionRequired.major()

        Version versionPresent = controlIntf.getAnnotation(Version.class);

        if (versionRequired != null) {
            int majorRequired = -1;
            try {
                majorRequired = versionRequired.major();
            }
            catch(NullPointerException ignore) {
                /*
                the major version annotation is required and if unspecified, will
                throw an NPE when it is quereid but not provided.  this error will
View Full Code Here

Examples of org.usb4java.Version.major()

    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
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.