Examples of keySet()


Examples of io.fabric8.utils.CountingMap.keySet()

     */
    public static void assertProfilesUseSeparateHost(FabricRequirements requirements, Map<String, CountingMap> hostToProfileCounts) {
        for (Map.Entry<String, CountingMap> entry : hostToProfileCounts.entrySet()) {
            String hostName = entry.getKey();
            CountingMap counts = entry.getValue();
            Set<String> keys = counts.keySet();
            for (String profileId : keys) {
                int count = counts.count(profileId);
                // lets see if we have a maximum number of profile count
                ProfileRequirements profileRequirement = requirements.getOrCreateProfileRequirement(profileId);
                Integer maximum = profileRequirement.getMaximumInstancesPerHost();

Examples of it.unimi.dsi.fastutil.doubles.Double2ObjectMap.keySet()

    public double[] getTimestamps(String key) {
        ColumnDraft col = getColumn(key);
        if (col != null) {
            Double2ObjectMap m = getDynamicAttributeValue(((ColumnDraftImpl) col).getIndex());
            if (m != null) {
                return m.keySet().toDoubleArray();
            }
        }
        return null;
    }

Examples of it.unimi.dsi.fastutil.ints.Int2ByteOpenHashMap.keySet()

                }

                hll.addRaw(rawValue);
            }

            for(int key : map.keySet()) {
                final byte expectedRegisterValue = map.get(key);
                assertRegisterPresent(hll, key, expectedRegisterValue);
            }
        }
    }

Examples of it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap.keySet()

  public Iterable<IntWritable> getPartitionDestinationVertices(
      int partitionId) {
    Int2FloatOpenHashMap partitionMap = map.get(partitionId);
    List<IntWritable> vertices =
        Lists.newArrayListWithCapacity(partitionMap.size());
    IntIterator iterator = partitionMap.keySet().iterator();
    while (iterator.hasNext()) {
      vertices.add(new IntWritable(iterator.nextInt()));
    }
    return vertices;
  }

Examples of it.unimi.dsi.fastutil.longs.Long2DoubleOpenHashMap.keySet()

  public Iterable<LongWritable> getPartitionDestinationVertices(
      int partitionId) {
    Long2DoubleOpenHashMap partitionMap = map.get(partitionId);
    List<LongWritable> vertices =
        Lists.newArrayListWithCapacity(partitionMap.size());
    LongIterator iterator = partitionMap.keySet().iterator();
    while (iterator.hasNext()) {
      vertices.add(new LongWritable(iterator.nextLong()));
    }
    return vertices;
  }

Examples of java.awt.RenderingHints.keySet()

        Hashtable table = new Hashtable();

        // If there are hints, add them to the table.
        if (hints != null && !hints.isEmpty()) {
            // Get a view of the hints' keys.
            Set keySet = hints.keySet();

            // Proceed if the key set is non-empty.
            if (!keySet.isEmpty()) {
                // Get an iterator for the key set.
                Iterator keyIterator = keySet.iterator();

Examples of java.lang.reflect.Method.keySet()

              String valueTypeOfHashMap = valueOfHashMap.getClass().getName();
              HashSet s = new HashSet();
             
              if (this.compareTypeNameToAllowedListTypes(valueTypeOfHashMap)) {
                Map m = (Map) valueOfHashMap;
                for (Iterator it = m.keySet().iterator();it.hasNext();) {
                  String key = it.next().toString();
//                  log.error("key: "+key);
                  Object listObject = m.get(key);
//                  log.error("listObject: "+listObject);
//                  log.error("listObject: "+listObject.getClass().getName());

Examples of java.security.Provider.keySet()

    Provider[] allProviders = Security.getProviders();

    // for each provider
    for (int i = 0; i < allProviders.length; i++) {
      Provider provider = allProviders[i];
      Set allProviderKeys = provider.keySet();
      boolean noMatchFoundForFilterEntry = false;

      // for each filter item
      Set allFilterKeys = filterMap.keySet();
      Iterator fkIter = allFilterKeys.iterator();

Examples of java.util.AbstractMap.keySet()

    // values() and keySet() on the cloned() map should be different
    assertEquals("values() was not cloned",
        "value2", values2.iterator().next());
    map2.clear();
    map2.put("key2", "value3");
    Set key2 = map2.keySet();
    assertTrue("keySet() is identical", key2 != keys);
    assertEquals("keySet() was not cloned",
        "key2", key2.iterator().next());
       
        // regresion test for HARMONY-4603

Examples of java.util.ArrayList.keySet()

        out.write(TREEMAP);
        LongPacker.packInt(out,l.size());
      }

      writeObject(out, l.comparator());
      for(Object o:l.keySet()){
        writeObject(out, o);
        writeObject(out, l.get(o));
      }
    }else if(clazz ==  HashMap.class){
      HashMap l = (HashMap) obj;
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.