Examples of keySet()


Examples of java.util.Collection.keySet()

                }
                else if (valueRight instanceof Map)
                {
                    Map coll = (Map) valueRight;
                    hasRows = true;
                    for (Object item : coll.keySet())
                    {
                        if (!(item instanceof Number))
                        {
                            if (isAll && item == null)
                            {

Examples of java.util.EnumMap.keySet()

    @SuppressWarnings( { "unchecked", "boxing" })
    public void test_keySet() {
        EnumMap enumSizeMap = new EnumMap(Size.class);
        enumSizeMap.put(Size.Middle, 2);
        enumSizeMap.put(Size.Big, null);
        Set set = enumSizeMap.keySet();

        Set set1 = enumSizeMap.keySet();
        assertSame("Should be same", set1, set); //$NON-NLS-1$
        try {
            set.add(Size.Big);

Examples of java.util.HashMap.keySet()

        }// end of if (tempAttachmentMap != null && tempAttachmentMap.size() >
          // 0)
        dynaform.set("attachmentList", attachments);
      }
      if (individualIds != null && individualIds.size() != 0) {
        Set key = individualIds.keySet();
        Iterator iterator = key.iterator();
        while (iterator.hasNext()) {
          String keyValue = (String) iterator.next();
          String tempData = ptData;
          int individualId = 0;

Examples of java.util.HashSet.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;

Examples of java.util.Hashtable.keySet()

    Hashtable m=jlh.scene.getNamedObjects();
    if(m!=null && m.size()>0){
      // TODO map these objects into corresponding ActiveNode
      // or do it for all the branchgroup sub nodes
      System.out.println("Scene contains :");
      Iterator it=m.keySet().iterator();
      while(it.hasNext()){
        Object v=it.next();
        System.out.println(v+"<=>"+m.get(v));
      }
    } 

Examples of java.util.IdentityHashMap.keySet()

    public synchronized boolean containsAll(Collection<?> c) {
        IdentityHashMap map = new IdentityHashMap();
        for (Object e : this) {
            map.put(e, Boolean.TRUE);
        }
        return map.keySet().containsAll(c);
    }
}

Examples of java.util.LinkedHashMap.keySet()

    map.put("UTF-16 BE BOM", new byte[] { (byte) 0xFE, (byte) 0xFF, 0, 'H', 0,
        'i' });
    map.put("UTF-16 LE", new byte[] { 'H', 0, 'i', 0 });
    map.put("UTF-16 BE", new byte[] { 0, 'H', 0, 'i' });

    for (Iterator iterator = map.keySet().iterator(); iterator.hasNext();) {
      String element = (String) iterator.next();
      System.out.println(element + ":");
      byte[] buffer = (byte[]) map.get(element);

      boolean bFirst0 = buffer[0] == 0;

Examples of java.util.LinkedHashSet.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;

Examples of java.util.LinkedList.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;

Examples of java.util.List.keySet()

    } else if(nbt instanceof NBTTagCompound) {
      Map internal = ((NBTTagCompound)nbt).tagMap;
      DefaultMutableTreeNode type = new DefaultMutableTreeNode("NBTTagCompound");
      DefaultMutableTreeNode content = new DefaultMutableTreeNode("Data");
     
      for(Object objectKey:internal.keySet()) {
        if(internal.get(objectKey) instanceof NBTBase) {
          DefaultMutableTreeNode nbtNode = new DefaultMutableTreeNode(objectKey);
          addNBTToTree((NBTBase)internal.get(objectKey), nbtNode);
          content.add(nbtNode);
        }
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.