Examples of containsKey()


Examples of com.gs.collections.api.map.primitive.ShortShortMap.containsKey()

            return false;
        }

        if (this.sentinelValues == null)
        {
            if (other.containsKey(EMPTY_KEY) || other.containsKey(REMOVED_KEY))
            {
                return false;
            }
        }
        else
View Full Code Here

Examples of com.gvaneyck.rtmp.encoding.ObjectMap.containsKey()

        // {"rate":0,"reason":"account_banned","status":"FAILED","delay":10000,"banned":7647952951000}
        if (result.get("status").equals("FAILED"))
            throw new IOException("Error logging in: " + result.get("reason"));

        // Handle login queue
        if (!result.containsKey("token")) {
            int node = result.getInt("node"); // Our login queue ID
            String nodeStr = "" + node;
            String champ = result.getString("champ"); // The name of our login
                                                      // queue
            int rate = result.getInt("rate"); // How many tickets are processed
View Full Code Here

Examples of com.gvaneyck.rtmp.encoding.TypedObject.containsKey()

      }
      accountID = allSummonerData.getTO("summoner").getDouble("acctId");
      summonerID = allSummonerData.getTO("summoner").getDouble("sumId");
      summonerName = allSummonerData.getTO("summoner").getString("name");
      TypedObject defaultSpellMap = getTO("summonerDefaultSpells").getTO("summonerDefaultSpellMap");
      if (defaultSpellMap.containsKey("CLASSIC")) {
        classicDefaultSpell1 = SummonerSpell.getSpell(defaultSpellMap.getTO("CLASSIC").getInt("spell1Id"));
        classicDefaultSpell2 = SummonerSpell.getSpell(defaultSpellMap.getTO("CLASSIC").getInt("spell2Id"));
      } else if (defaultSpellMap.containsKey("ODIN")) {
        dominionDefaultSpell1 = SummonerSpell.getSpell(defaultSpellMap.getTO("ODIN").getInt("spell1Id"));
        dominionDefaultSpell2 = SummonerSpell.getSpell(defaultSpellMap.getTO("ODIN").getInt("spell2Id"));
View Full Code Here

Examples of com.hazelcast.core.IMap.containsKey()

            }
        }, 1);
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
                map.containsKey(random.nextInt(SIZE));
            }
        }, 2);
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
View Full Code Here

Examples of com.hazelcast.core.MultiMap.containsKey()

    @Test
    public void testContainsKey() {
        TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(1);
        MultiMap multiMap = getMultiMap(factory.newInstances(), randomString());
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.put("test","test");
        System.out.println("test = " + multiMap.containsKey("test"));
        multiMap.remove("test");
        System.out.println("test = " + multiMap.containsKey("test"));
View Full Code Here

Examples of com.hazelcast.core.TransactionalMap.containsKey()

    public Object innerCall() throws Exception {
        final TransactionContext context = getEndpoint().getTransactionContext(txnId);
        final TransactionalMap map = context.getMap(name);
        switch (requestType) {
            case CONTAINS_KEY:
                return map.containsKey(key);
            case GET:
                return map.get(key);
            case GET_FOR_UPDATE:
                return map.getForUpdate(key);
            case SIZE:
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer.containsKey()

        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        if (key != null && value != null) {
            response = container.containsEntry(isBinary(), key, value);
        } else if (key != null) {
            response = container.containsKey(key);
        } else {
            response = container.containsValue(isBinary(), value);
        }
    }
View Full Code Here

Examples of com.hazelcast.multimap.impl.MultiMapContainer.containsKey()

        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        if (key != null && value != null) {
            response = container.containsEntry(isBinary(), key, value);
        } else if (key != null) {
            response = container.containsKey(key);
        } else {
            response = container.containsValue(isBinary(), value);
        }
    }
View Full Code Here

Examples of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore.containsKey()

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.containsKey(key);
    }

    @Override
    public void write(PortableWriter writer)
            throws IOException {
View Full Code Here

Examples of com.hazelcast.replicatedmap.record.ReplicatedRecordStore.containsKey()

    @Override
    public Object call()
            throws Exception {
        ReplicatedRecordStore recordStore = getReplicatedRecordStore();
        return recordStore.containsKey(key);
    }

    @Override
    public void write(PortableWriter writer)
            throws IOException {
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.