Examples of containsKey()


Examples of com.sk89q.jnbt.CompoundTag.containsKey()

    private BaseEntity transformNbtData(BaseEntity state) {
        CompoundTag tag = state.getNbtData();

        if (tag != null) {
            // Handle hanging entities (paintings, item frames, etc.)
            boolean hasTilePosition = tag.containsKey("TileX") && tag.containsKey("TileY") && tag.containsKey("TileZ");
            boolean hasDirection = tag.containsKey("Direction");
            boolean hasLegacyDirection = tag.containsKey("Dir");

            if (hasTilePosition) {
                Vector tilePosition = new Vector(tag.asInt("TileX"), tag.asInt("TileY"), tag.asInt("TileZ"));
View Full Code Here

Examples of com.springsource.insight.plugin.files.tracker.AbstractFilesTrackerAspectSupport.FilesCache.containsKey()

            if (index < MAX_CAPACITY) {
                assertEquals("Mismatched pre-populated cache size", index + 1, cache.size());
            } else {
                assertEquals("Mismatched post-populated cache size", MAX_CAPACITY, cache.size());
                assertTrue("Last value was bumped unpexpectedly", cache.containsKey(key));
            }
        }
    }

    @Test
View Full Code Here

Examples of com.sun.messaging.jmq.admin.objstore.ObjStoreAttrs.containsKey()

        /*
   * Now add these to the object store.
   */
  ObjStoreAttrs osa = os.getObjStoreAttrs();

  if (!osa.containsKey(Context.SECURITY_PRINCIPAL)) {
      this.os.addObjStoreAttr(Context.SECURITY_PRINCIPAL, principalValue);
  }
  if (!osa.containsKey(Context.SECURITY_CREDENTIALS)) {
      this.os.addObjStoreAttr(Context.SECURITY_CREDENTIALS, credentialsValue);
  }
View Full Code Here

Examples of com.sun.net.httpserver.Headers.containsKey()

     * @param name a String specifying the cookie name.
     */
    public String getCookie(final String name)
    {
        Headers headers = _exchange.getRequestHeaders();
        if (!headers.containsKey("Cookie"))
        {
            return null;
        }

        List<String> values = headers.get("cookie");
View Full Code Here

Examples of com.sun.sgs.app.util.ScalableHashMap.containsKey()

      new TestAbstractKernelRunnable() {
    public void run() throws Exception {
        dataService.removeObject(dataService.getBinding("bar"));
        ScalableHashMap test =
      (ScalableHashMap) dataService.getBinding("test");
        assertFalse(test.containsKey(new Bar(1)));
        assertEquals(2, test.size());
    }
      }, taskOwner);
  txnScheduler.runTask(
      new TestAbstractKernelRunnable() {
View Full Code Here

Examples of com.sun.star.container.XEnumerableMap.containsKey()

        final Double[] values = new Double[] { Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, new Double( 0 ) };

        XEnumerableMap map = com.sun.star.container.EnumerableMap.create( param.getComponentContext(), new Type( Double.class ), new Type( Double.class ) );
        impl_putAll( map, keys, values );

        assure( "containsKey( Double.+INF failed", map.containsKey( Double.POSITIVE_INFINITY ) );
        assure( "containsKey( Double.-INF failed", map.containsKey( Double.NEGATIVE_INFINITY ) );
        assure( "containsKey( 0 ) failed", map.containsKey( new Double( 0 ) ) );

        assure( "containsValue( Double.+INF ) failed", map.containsValue( Double.POSITIVE_INFINITY ) );
        assure( "containsValue( Double.-INF ) failed", map.containsValue( Double.NEGATIVE_INFINITY ) );
View Full Code Here

Examples of com.tinkerpop.gremlin.process.graph.util.Tree.containsKey()

        this.setConsumer(traverser -> {
            Tree depth = this.getTraversal().sideEffects().get(this.sideEffectKey);
            final Path path = traverser.path();
            for (int i = 0; i < path.size(); i++) {
                final Object object = functionRing.next().apply(path.get(i));
                if (!depth.containsKey(object))
                    depth.put(object, new Tree<>());
                depth = (Tree) depth.get(object);
            }
            this.functionRing.reset();
        });
View Full Code Here

Examples of com.trendrr.oss.DynMap.containsKey()

        if (v == null) {
          log.warn("TAG: " + key + " IS EMPTY!");
          continue;
        }
       
        if (mp.containsKey(key)) {
          List values = mp.get(List.class, key);
          values.add(v);
          mp.put(key, values);
        } else {
          mp.put(key, v);
View Full Code Here

Examples of com.typesafe.config.ConfigObject.containsKey()

                            T objectShell = singleKeyType.newInstance();
                            Config fieldDefaults = singleKeyInfo.getFieldDefaults();
                            // do not merge objects between global defaults and user defaults (incl. alias defaults)
                            ConfigObject mergedDefaults = aliasDefaults;
                            for (Map.Entry<String, ConfigValue> pair : fieldDefaults.entrySet()) {
                                if (!mergedDefaults.containsKey(pair.getKey())) {
                                    mergedDefaults = mergedDefaults.withValue(pair.getKey(), pair.getValue());
                                }
                            }
                            ((ValueCodable) objectShell).fromConfigValue(configValue, mergedDefaults);
                            return objectShell;
View Full Code Here

Examples of com.uwyn.jhighlight.pcj.map.CharKeyMap.containsKey()

            Object v = i.getValue();
            if (v==null)
      {
                if (map.get(k)!=null)
                    return false;
                if (!map.containsKey(k))
                    return false;
            }
      else
      {
                if (!v.equals(map.get(k)))
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.