Package it.unimi.dsi.fastutil.ints

Examples of it.unimi.dsi.fastutil.ints.Int2FloatMap.containsKey()


      floats[i] = k;
    }

    for (int i = 0; i < size; i++) {
      assertEquals(floats[i], map.get(i), 10e-6);
      assertTrue(map.containsKey(i));
    }

  }

  @Test
View Full Code Here


    assertEquals(size, map.size());

    for (int i = 0; i < size; i++) {
      assertEquals(floats[i] + 1.0f, map.get(i), 10e-6);
      assertTrue(map.containsKey(i));
    }

  }

  @Test
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.