Examples of keySet()


Examples of com.google.api.client.http.HttpHeaders.keySet()

    b.append(exception.getStatusCode()).append(" with ");
    Long contentLength = exception.getHeaders().getContentLength();
    b.append(contentLength != null ? contentLength : Long.valueOf(0));
    b.append(" bytes of content");
    HttpHeaders headers = exception.getHeaders();
    for (String name : headers.keySet()) {
      b.append('\n').append(name).append(": ").append(headers.get(name));
    }
    b.append('\n').append(exception.getContent()).append('\n');
  }

Examples of com.google.gson.internal.LinkedTreeMap.keySet()

        VersionChecker.newVersion = Integer.toString(Double.valueOf(part.get("build").toString()).intValue());
        LogisticsPipes.log.info("New LogisticsPipes" + (LPConstants.DEV_BUILD?"-Dev":"") + " version found: #" + Double.valueOf(part.get("build").toString()).intValue());
        LinkedTreeMap changeLog = (LinkedTreeMap) part.get("changelog");
        List<String> changeLogList = new ArrayList<String>();
        if(changeLog != null) {
          for(Object oVersion:changeLog.keySet()) {
            String build = oVersion.toString();
            changeLogList.add(new StringBuilder(build).append(": ").toString());
            List<String> sub = (List<String>) changeLog.get(build);
            for(String msg:sub) {
              if(msg.length() > 60) {

Examples of com.google.gwt.i18n.client.Dictionary.keySet()

        RootPanel.get("error").add(errorLabel);
        thumbnails = RootPanel.get("thumbnails");

        Dictionary params = Dictionary.getDictionary("picasaapp_params");
        if (params != null) {
            Set<String> keys = params.keySet();
            if (keys.contains("username")) {
                username = params.get("username");
            }
            if (keys.contains("set_window_title")) {
                setWindowTitle = Boolean.parseBoolean(

Examples of com.google.gwt.json.client.JSONObject.keySet()

        Map<Object, Object> map = new HashMap<Object, Object>();

        JSONObject jsonMap = (JSONObject) jsonValue;
        ConnectorMap connectorMap = ConnectorMap.get(connection);

        for (String connectorId : jsonMap.keySet()) {
            Object value = decodeValue(valueType, jsonMap.get(connectorId),
                    null, connection);
            map.put(connectorMap.getConnector(connectorId), value);
        }

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

            }
        }, 10);
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
                Iterator it = map.keySet(new SqlPredicate("name=" + random.nextInt(10000))).iterator();
                while (it.hasNext()) {
                    it.next();
                }
            }
        }, 10);

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

    }

    @Test
    public void testEmptyKeySet() {
        final MultiMap mm = client.getMultiMap(randomString());
        assertEquals(Collections.EMPTY_SET, mm.keySet());
    }

    @Test
    public void testKeySet() {
        final int maxKeys = 23;

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

                map.delete(key);
                break;
            case REMOVE_IF_SAME:
                return map.remove(key, value);
            case KEYSET:
                return getMapKeySet(map.keySet());
            case KEYSET_BY_PREDICATE:
                return getMapKeySet(map.keySet(getPredicate()));
            case VALUES:
                return getMapValueCollection(map.values());
            case VALUES_BY_PREDICATE:

Examples of com.hazelcast.map.RecordStore.keySet()

    }

    public void run() {
        MapService mapService = (MapService) getService();
        RecordStore recordStore = mapService.getRecordStore(getPartitionId(), name);
        keySet = recordStore.keySet();
        if (mapContainer.getMapConfig().isStatisticsEnabled()) {
            ((MapService) getService()).getLocalMapStatsImpl(name).incrementOtherOperations();
        }
    }

Examples of com.hazelcast.map.impl.RecordStore.keySet()

    }

    public void run() {
        MapService mapService = getService();
        RecordStore recordStore = mapService.getMapServiceContext().getRecordStore(getPartitionId(), name);
        keySet = recordStore.keySet();
        if (mapContainer.getMapConfig().isStatisticsEnabled()) {
            ((MapService) getService()).getMapServiceContext()
                    .getLocalMapStatsProvider().getLocalMapStatsImpl(name).incrementOtherOperations();
        }
    }

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

    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        response = new MultiMapResponse(container.keySet());
    }

    public int getId() {
        return MultiMapDataSerializerHook.KEY_SET;
    }
TOP
Copyright © 2015 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.