Examples of keySet()


Examples of org.exoplatform.services.rest.impl.InputHeadersMap.keySet()

      {
      }

      try
      {
         um.keySet().remove("hello");
         fail("UnsupportedOperationException should be thrown");
      }
      catch (UnsupportedOperationException e)
      {
      }

Examples of org.exoplatform.services.rest.resource.SubResourceLocatorMap.keySet()

   public void testSubResourceLocatorSorting()
   {
      AbstractResourceDescriptor resource = new AbstractResourceDescriptorImpl(SampleResource3.class);
      SubResourceLocatorMap locs = resource.getSubResourceLocators();
      Collection<UriPattern> uris = locs.keySet();
      Iterator<UriPattern> i = uris.iterator();
      // NOTE template will be normalized, first slash added
      assertEquals("/b/c/d", i.next().getTemplate());
      assertEquals("/b/c/z", i.next().getTemplate());
      assertEquals("/b/c", i.next().getTemplate());

Examples of org.exoplatform.services.rest.resource.SubResourceMethodMap.keySet()

   public void testSubResourceMethodSorting()
   {
      AbstractResourceDescriptor resource = new AbstractResourceDescriptorImpl(SampleResource2.class);
      SubResourceMethodMap srmm = resource.getSubResourceMethods();
      Collection<UriPattern> uris = srmm.keySet();
      Iterator<UriPattern> i = uris.iterator();
      // NOTE template will be normalized, first slash added
      assertEquals("/b/c/d", i.next().getTemplate());
      assertEquals("/b/c", i.next().getTemplate());
      assertEquals("/b/{c}", i.next().getTemplate());

Examples of org.fedorahosted.openprops.Properties.keySet()

    }

    public static List<HeaderEntry> headerToList(String entries) {
        Properties props = headerToProperties(entries);
        List<HeaderEntry> result = new ArrayList<HeaderEntry>();
        for (String key : props.keySet()) {
            result.add(new HeaderEntry(key, props.getProperty(key)));
        }
        return result;
    }

Examples of org.gatein.api.common.Attributes.keySet()

        populate("locale", site.getLocale(), siteModel);
        populate("access-permissions", site.getAccessPermission(), siteModel);
        populate("edit-permissions", site.getEditPermission(), siteModel);
        ModelList attrList = siteModel.get("attributes", ModelList.class);
        Attributes attributes = site.getAttributes();
        for (String key : attributes.keySet()) {
            ModelObject attr = attrList.add().setEmptyObject();
            attr.set("key", key);
            attr.set("value", attributes.get(key));
        }

Examples of org.gatein.common.util.ParameterMap.keySet()

   public Enumeration<String> getParameterNames()
   {
      ParameterMap parameters = requestParameterMap.getParameters();

      //
      return parameters != null ? Collections.enumeration(parameters.keySet()) : (Enumeration<String>)Tools.EMPTY_ENUMERATION;
   }

   public String[] getParameterValues(String name)
   {
      if (name == null)

Examples of org.gatein.pc.api.state.PropertyMap.keySet()

      if (keys == null)
      {
         throw new IllegalArgumentException("No keys provided");
      }
      PropertyMap props = getProperties(portletContext);
      props.keySet().retainAll(keys);
      return props;
   }

   public PropertyMap getProperties(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
   {

Examples of org.geoserver.catalog.MetadataMap.keySet()

        if(elevationDimension != null && elevationDimension.isEnabled()) {
            return true;
        }
       
        // look for custom dimensions
        for (String key : metadata.keySet()) {
            if(key != null && key.startsWith(ResourceInfo.CUSTOM_DIMENSION_PREFIX)) {
                DimensionInfo di = metadata.get(key, DimensionInfo.class);
                if(di != null && di.isEnabled()) {
                    return true;
                }

Examples of org.grouplens.lenskit.vectors.ImmutableSparseVector.keySet()

        final ImmutableSparseVector vector = normalizer.normalize(user.getUserId(), urs, null)
                                                 .freeze();

        LongCollection qset = items;
        if (vector.size() < qset.size()) {
            qset = vector.keySet();
        }
        final LongSet candidates = new LongOpenHashSet();
        for (LongIterator iter = qset.iterator(); iter.hasNext();) {
            final long item = iter.nextLong();
            LongSet users = snapshot.getItemUsers(item);

Examples of org.grouplens.lenskit.vectors.MutableSparseVector.keySet()

        if (history == null) {
            baseline.score(user, items);
        } else {
            MutableSparseVector vec = summarizer.summarize(history).mutableCopy();
            // score everything, both rated and not, for offsets
            LongSet allItems = LongUtils.setUnion(vec.keySet(), items.keyDomain());
            MutableSparseVector baseScores = MutableSparseVector.create(allItems);
            baseline.score(user, baseScores);
            // subtract scores from ratings, yielding offsets
            vec.subtract(baseScores);
            double meanOffset = vec.sum() / (vec.size() + damping);
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.