Examples of incAndGet()


Examples of org.apache.jena.atlas.lib.RefLong.incAndGet()

   
    @Test public void ref_03()
    {
        RefLong ref = new RefLong(99) ;
        assertEquals(99, ref.value()) ;
        long x = ref.incAndGet() ;
        assertEquals(100, x) ;
        assertEquals(100, ref.value()) ;
        x = ref.getAndInc() ;
        assertEquals(100, x) ;
        assertEquals(101, ref.value()) ;
View Full Code Here

Examples of org.openjena.atlas.lib.RefLong.incAndGet()

   
    @Test public void ref_03()
    {
        RefLong ref = new RefLong(99) ;
        assertEquals(99, ref.value()) ;
        long x = ref.incAndGet() ;
        assertEquals(100, x) ;
        assertEquals(100, ref.value()) ;
        x = ref.getAndInc() ;
        assertEquals(100, x) ;
        assertEquals(101, ref.value()) ;
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.