Examples of keySet()


Examples of org.serviceconnector.registry.ServerRegistry.keySet()

   *            the port
   */
  private void cleanUpDeadServer(String host, int port) {
    String wildKey = "_" + host + Constants.SLASH + port;
    ServerRegistry serverRegistry = AppContext.getServerRegistry();
    Set<String> keySet = serverRegistry.keySet();

    for (String key : keySet) {
      try {
        if (key.endsWith(wildKey)) {
          Server server = serverRegistry.getServer(key);

Examples of org.simpleframework.http.Query.keySet()

    @Override
    public ImmutableMap<String, ImmutableList<String>> getQueryParams() {
        if (queryParams == null) {
            ImmutableMap.Builder<String, ImmutableList<String>> paramsBuilder = ImmutableMap.builder();
            Query query = request.getQuery();
            for (String param : query.keySet()) {
                paramsBuilder.put(param, ImmutableList.copyOf(query.getAll(param)));
            }
            queryParams = paramsBuilder.build();
        }
        return queryParams;

Examples of org.slim3.util.RequestMap.keySet()

    @Test
    public void asMap() throws Exception {
        tester.request.setAttribute("aaa", "aiueo");
        tester.request.setAttribute("bbb", "12345");
        RequestMap map = controller.asMap();
        assertThat(map.keySet().size(), is(2));
        assertThat((String)map.get("aaa"), is("aiueo"));
        assertThat((String)map.get("bbb"), is("12345"));
    }
   
    /**
 

Examples of org.springframework.core.annotation.AnnotationAttributes.keySet()

    // values from the target annotation. A copy is necessary so that we do
    // not inadvertently mutate the state of the metadata passed to this
    // method.
    AnnotationAttributes results = new AnnotationAttributes(attributesList.get(0));

    Set<String> overridableAttributeNames = new HashSet<String>(results.keySet());
    overridableAttributeNames.remove(AnnotationUtils.VALUE);

    // Since the map is a LinkedMultiValueMap, we depend on the ordering of
    // elements in the map and reverse the order of the keys in order to traverse
    // "down" the annotation hierarchy.

Examples of org.springframework.integration.MessageHeaders.keySet()

    newheaders.put(SignatureHelper.USER_HEADER, "notification");
    newheaders.put(SignatureHelper.TIMESTAMP_HEADER, "\"" + System.currentTimeMillis() + "\"");

    //sign only those headers that are Strings
    Map<String, List<String>> stringHeaders = new HashMap<String, List<String>>();
    for (String key : headers.keySet()) {
      if (headers.get(key) instanceof String) {
        List<String> ss = new ArrayList<String>();
        ss.add(headers.get(key, String.class));
        stringHeaders.put(key, ss);
      }

Examples of org.springframework.roo.model.CustomData.keySet()

    private void addOtherFieldsAndMethods() {
        for (final FieldMetadata field : locatedFields) {
            final CustomData customData = field.getCustomData();

            if (customData.keySet().contains(APPLICATION_TYPE_KEY)) {
                builderMethods.add(getAutoCompleteApplicationTypeMethod(field));
            }
            else if (customData.keySet().contains(ENUMERATED_KEY)) {
                builderMethods.add(getAutoCompleteEnumMethod(field));
            }

Examples of org.springframework.roo.model.CustomDataBuilder.keySet()

                        }
                    }
                }
                else {
                    if (fieldTypeCid != null
                            && !customDataBuilder.keySet().contains(
                                    CustomDataKeys.EMBEDDED_FIELD)) {
                        customDataBuilder.put(APPLICATION_TYPE_KEY, null);
                        final MethodMetadata applicationTypeIdentifierAccessor = persistenceMemberLocator
                                .getIdentifierAccessor(entity);
                        final MethodMetadata applicationTypeVersionAccessor = persistenceMemberLocator

Examples of org.springframework.ui.ModelMap.keySet()

      throws Exception {

    ModelMap model = mavContainer.getModel();
    if (model.size() > 0) {
      int lastIndex = model.size()-1;
      String lastKey = new ArrayList<String>(model.keySet()).get(lastIndex);
      if (lastKey.startsWith(BindingResult.MODEL_KEY_PREFIX)) {
        return model.get(lastKey);
      }
    }

Examples of org.structr.core.property.PropertyMap.keySet()

    if (notionPropertyMap != null) {

      final Set<PropertyKey> keySet      = Services.getInstance().getConfigurationProvider().getPropertySet(type, PropertyView.Public);
      final PropertyMap notionProperties = notionPropertyMap.get(entityKey);

      for (final Iterator<PropertyKey> it = notionProperties.keySet().iterator(); it.hasNext();) {

        final PropertyKey key = it.next();
        if (!keySet.contains(key)) {

          it.remove();

Examples of org.tmatesoft.svn.core.internal.util.SVNHashMap.keySet()

            }
            return null;
        } else if (!logEntry.getChangedPaths().isEmpty()){
            Map sortedMap = new SVNHashMap();
            sortedMap.putAll(logEntry.getChangedPaths());
            List pathsList = new ArrayList(sortedMap.keySet());
            Collections.sort(pathsList, SVNPathUtil.PATH_COMPARATOR);
            Collections.reverse(pathsList);
            for(Iterator paths = pathsList.iterator(); paths.hasNext();) {
                String p = (String) paths.next();
                if (path.startsWith(p + "/")) {
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.