Package org.zkoss.zss.model.impl

Examples of org.zkoss.zss.model.impl.SparseByteIndex


    System.out.println("seed:"+seed);

    Random ran = new Random(seed);
    int size = 256; //size to do indexing
    int count = 512; //test cycle
    SparseByteIndex sa3 = new SparseByteIndex(size);

    for(int j=0; j < count; ++j) {
      int index = ran.nextInt(size);
      boolean empty = ran.nextBoolean();
     
      sa3.setEmpty(index, empty);
      assertEquals(empty,  sa3.isEmpty(index));
      assertEquals(index, sa3.nextIndex(index, empty));
    }
    assertEquals(size, sa3.calcSize());
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.model.impl.SparseByteIndex

Copyright © 2018 www.massapicom. 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.