Package org.apache.log4j.helpers

Examples of org.apache.log4j.helpers.BoundedFIFO.resize()


        BoundedFIFO bf = new BoundedFIFO(size);
        for(int f = 0; f < i; f++) {
          bf.put(e[f]);
        }

        bf.resize(n);
        int expectedSize = min(n, min(i, size));
        assertEquals(bf.length(), expectedSize);
        for(int c = 0; c < expectedSize; c++) {
          assertEquals(bf.get(), e[c]);
        }
View Full Code Here


    }

    // x = the number of elems in
    int x = bf.length();

    bf.resize(n);

    int expectedSize = min(n, x);
    assertEquals(bf.length(), expectedSize);

    for(int c = 0; c < expectedSize; c++) {
View Full Code Here

     

     
      int x =  bf.length();

      bf.resize(n);
     

      int expectedSize = min(n, x);
      assertEquals(bf.length(), expectedSize);
View Full Code Here

        BoundedFIFO bf = new BoundedFIFO(size);
        for(int f = 0; f < i; f++) {
          bf.put(e[f]);
        }

        bf.resize(n);
        int expectedSize = min(n, min(i, size));
        assertEquals(bf.length(), expectedSize);
        for(int c = 0; c < expectedSize; c++) {
          assertEquals(bf.get(), e[c]);
        }
View Full Code Here

    }

    // x = the number of elems in
    int x = bf.length();

    bf.resize(n);

    int expectedSize = min(n, x);
    assertEquals(bf.length(), expectedSize);

    for(int c = 0; c < expectedSize; c++) {
View Full Code Here

     

     
      int x =  bf.length();

      bf.resize(n);
     

      int expectedSize = min(n, x);
      assertEquals(bf.length(), expectedSize);
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.