Package org.zkoss.zss.model.impl

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


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

    Random ran = new Random(seed);
    int size = 64*1024; //size to do indexing
    int count = 64*1024; //test cycle
    SparseShortIndex sa3 = new SparseShortIndex(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.SparseShortIndex

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.