Package gnu.trove.map.hash

Examples of gnu.trove.map.hash.TLongLongHashMap$TLongLongKeyHashIterator


*/
public class TIntPairLongHashMap {
  private TLongLongHashMap map;

  public TIntPairLongHashMap() {
    map = new TLongLongHashMap(100);
  }
View Full Code Here


  public TIntPairLongHashMap() {
    map = new TLongLongHashMap(100);
  }

  public TIntPairLongHashMap(int capacity) {
    map = new TLongLongHashMap(capacity);
  }
View Full Code Here

  /**
   * Test trove4j's implementation
   */
  @Test
  public void troveLongMap() {
    TLongLongHashMap map = new TLongLongHashMap(values.length * 3 / 2);
    for (int i = 0; i < values.length; ++i) {
      map.put(values[i], values[values.length - i - 1]);
    }
   
    for (int i = 0; i < values.length; ++i) {
      assertTrue(map.containsKey(values[i]));
    }
   
    for (int i = 0; i < values.length; ++i) {
      map.remove(values[i]);
    }
  }
View Full Code Here

TOP

Related Classes of gnu.trove.map.hash.TLongLongHashMap$TLongLongKeyHashIterator

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.