Examples of containsKey()


Examples of org.apache.lucene.facet.collections.IntToDoubleMap.containsKey()

      assertNotNull(map.get(i));
    }

    assertEquals(100, map.size());
    for (int i = 0; i < 100; ++i) {
      assertTrue(map.containsKey(i));
      assertEquals(100 + i, map.get(i), Double.MAX_VALUE);

    }

    for (int i = 10; i < 90; ++i) {
View Full Code Here

Examples of org.apache.lucene.facet.collections.IntToFloatMap.containsKey()

      assertTrue(valueSet.contains(array3[i]));
    }
   
    for (int i = 0; i < length; ++i) {
      assertTrue(map.containsValue(i + 100));
      assertTrue(map.containsKey(i*64));
    }
   
    for (IntIterator iit = map.keyIterator(); iit.hasNext(); ) {
      iit.next();
      iit.remove();
View Full Code Here

Examples of org.apache.lucene.facet.collections.IntToIntMap.containsKey()

      assertNotNull(map.get(i));
    }

    assertEquals(100, map.size());
    for (int i = 0; i < 100; ++i) {
      assertTrue(map.containsKey(i));
      assertEquals(100 + i, map.get(i));

    }

    for (int i = 10; i < 90; ++i) {
View Full Code Here

Examples of org.apache.lucene.util.collections.IntToDoubleMap.containsKey()

      assertNotNull(map.get(i));
    }

    assertEquals(100, map.size());
    for (int i = 0; i < 100; ++i) {
      assertTrue(map.containsKey(i));
      assertEquals(100 + i, map.get(i), Double.MAX_VALUE);

    }

    for (int i = 10; i < 90; ++i) {
View Full Code Here

Examples of org.apache.lucene.util.collections.IntToIntMap.containsKey()

      assertNotNull(map.get(i));
    }

    assertEquals(100, map.size());
    for (int i = 0; i < 100; ++i) {
      assertTrue(map.containsKey(i));
      assertEquals(100 + i, map.get(i));

    }

    for (int i = 10; i < 90; ++i) {
View Full Code Here

Examples of org.apache.mahout.math.map.OpenIntIntHashMap.containsKey()

      int justPrevNode = -1;
      while (nextNode != -1) {
       
        int parent = tree.parent(nextNode);
       
        if (prevNode.containsKey(parent) == false) {
          prevNode.put(parent, nextNode);
        } else {
          int prevNodeId = prevNode.get(parent);
          if (1 >= tree.childCount(prevNodeId)
              && 1 >= tree.childCount(nextNode)) {
View Full Code Here

Examples of org.apache.myfaces.tobago.renderkit.html.HtmlStyleMap.containsKey()

        sliderWidthPerc = 75;
      }
    }
    int sliderWidth = 100; // fixme
    int inputWidth = 50; // fixme;
    if (style != null && style.containsKey("width")) {
      width = style.getInt("width");
    }
    if (width >= 0) {
      sliderWidth = (width * sliderWidthPerc) / 100;
      inputWidth = (width * (100 - sliderWidthPerc)) / 100;
View Full Code Here

Examples of org.apache.nutch.crawl.MapWritable.containsKey()

    for (int i = 0; i < 100; i++) {
      Text key = new Text("" + i);
      IntWritable value = new IntWritable(i);
      map.put(key, value);
      assertEquals(i + 1, map.size());
      assertTrue(map.containsKey(new Text("" + i)));
      assertTrue(map.containsValue(new IntWritable(i)));
      map.remove(key);
      assertEquals(i, map.size());
      map.put(key, value);
      assertEquals(value, map.get(key));
View Full Code Here

Examples of org.apache.oodt.cas.metadata.Metadata.containsKey()

    if (type.getTypeMetadata() != null) {
      Metadata typeMet = type.getTypeMetadata();
      for (Object constraintObj : this.constraints.keySet()) {
        String constraintName = (String) constraintObj;
        String constraintValue = this.constraints.getProperty(constraintName);
        if (!typeMet.containsKey(constraintName)) {
          return false;
        }

        if (!typeMet.getMetadata(constraintName).equals(constraintValue)) {
          return false;
View Full Code Here

Examples of org.apache.openejb.quartz.JobDataMap.containsKey()

        triggerDataMap.put(EjbTimeoutJob.EJB_TIMERS_SERVICE, timerService);
        triggerDataMap.put(EjbTimeoutJob.TIMER_DATA, data);

        final byte[] serial = serialize(triggerDataMap);
        final JobDataMap map = (JobDataMap) deserialize(serial);
        assertTrue(map.containsKey(EjbTimeoutJob.EJB_TIMERS_SERVICE));
        assertTrue(map.containsKey(EjbTimeoutJob.TIMER_DATA));
    }

    private static Object deserialize(final byte[] serial) throws Exception {
        final ByteArrayInputStream bais = new ByteArrayInputStream(serial);
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.