Examples of truncate()


Examples of org.timepedia.chronoscope.client.util.date.ChronoDate.truncate()

    d.truncate(TimeUnit.WEEK);
    assertEquals(1199, 11, 26, d); // expect Sun, Dec 26, 1199

    // Tue, Mar 20, 1582
    d = createTestDate(1582, 2, 20, 23, 59, 59, 123);
    d.truncate(TimeUnit.WEEK);
    assertEquals(1582, 2, 18, d);
  }
 
  public void testCopyTo() {
    ChronoDate source = createTestDate(1971, 5, 1);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.internal.ISqlJetFile.truncate()

         * file APIs on the database file directly.
         */
        pBtTo.db = pTo.db;
        pBtTo.pPager.commitPhaseOne(null, true);
        if (iSize < iNow) {
            pFile.truncate(iSize);
        }

        /*
         * The loop that copied data from database pFrom to pTo did not*
         * populate the locking page of database pTo. If the page-size of* pFrom
 
View Full Code Here

Examples of org.uberfire.java.nio.channels.SeekableByteChannel.truncate()

        assertEquals( "ONTENT\n?", new String( buffer.array() ) );

        assertEquals( 9L, sbc.position() );

        sbc.position( 0L );
        sbc.truncate( 2L );
        ByteBuffer buffer3 = ByteBuffer.allocate( 2 );
        sbc.read( buffer3 );
        assertEquals( "CO", new String( buffer3.array() ) );

        sbc.close();
View Full Code Here

Examples of sun.security.util.BitArray.truncate()

        check(v2.getUnalignedBitString().length(), 3);

        BitArray ba;
        ba = new BitArray(new boolean[] {false, false, false});
        check(ba.length(), 3);
        ba = ba.truncate();
        check(ba.length(), 1);

        ba = new BitArray(new boolean[] {
            true, true, true, true, true, true, true, true,
            false, false});
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.