Package org.rococoa

Examples of org.rococoa.ID.longValue()


   
    @Test public void convertsReturnedIDToString() {
        ID helloID = Foundation.cfString("Hello"); // just leaks
       
        // We can cope with 64 bits on 64 and 32
        Number nativeValue = new Long(helloID.longValue());
        String converted = converter.fromNative(nativeValue, null);
        assertEquals("Hello", converted);

        // We must cope with 32 bits on 32-bit
        if (NativeLong.SIZE == 4) {
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.