Package java.util

Examples of java.util.HashMap.keySet()


      sChildTable = getRowSet(r).OriginTable;

      if (sChildTable.equalsIgnoreCase(sReferedTable)) {
        oTransformsRef = (HashMap) Transformations.get(r);
        // Recorrer la lista de valores
        oTransformSet = oTransformsRef.keySet();
        oSetIterator = oTransformSet.iterator();
        while (oSetIterator.hasNext()) {
          oTransformRef = (DataTransformation) oTransformsRef.get(oSetIterator.next());
          if (oTransformRef.OriginField.equalsIgnoreCase(oTransform.ReferedField)) {
            oTransform.setReferedValues(oTransformRef);
View Full Code Here


   
    if (groupSize > nextLimitCall) {

      inLimit = true;
      callback.reached(this, group, limit,
        new LockList(java.util.Collections.enumeration(dl.keySet())), groupSize);
      inLimit = false;

      // see when the next callback should occur, if the callback
      // failed to release a sufficent amount of locks then
      // delay until another "limit" locks are obtained.
View Full Code Here

  synchronized void unlockGroup(LockTable lset, Object group) {
    HashMap dl = (HashMap) groups.remove(group);
    if (dl == null)
      return;

    for (Iterator list = dl.keySet().iterator(); list.hasNext(); ) {
      lset.unlock((Lock) list.next(), 0);
    }

    if ((callbackGroup != null) && group.equals(callbackGroup)) {
      nextLimitCall = limit;
View Full Code Here

    HashMap dl = (HashMap) groups.get(group);
    if (dl == null)
      return; //  no group at all

    boolean allUnlocked = true;
    for (Iterator e = dl.keySet().iterator(); e.hasNext(); ) {

      Lock lock = (Lock) e.next();
      if (!key.match(lock.getLockable())) {
        allUnlocked = false;
        continue;
View Full Code Here

    int count = 0;

    for (Iterator it = groups.values().iterator(); it.hasNext(); ) {
      HashMap group = (HashMap) it.next();
      for (Iterator locks = group.keySet().iterator(); locks.hasNext(); ) {
          Lock lock = (Lock) locks.next();
          count += lock.getCount();
          if (count > bail)
            return count;
      }
View Full Code Here

            }
            localeList.add(loc);
        }

        // Extract and build the list
        Float orderKeys[] = (Float[]) localeEntries.keySet().toArray(new Float[0]);
        Arrays.sort(orderKeys);
        List outputLocaleList = new ArrayList();
        for (int n = 0; n < orderKeys.length; n++) {
            // Skip backwards through the list of maps and add to the output list
            int reversedIndex = (orderKeys.length - 1) - n;
View Full Code Here

        Map attributes = new HashMap(this.attributes);
        if (!this.attributesStack.isEmpty()) {
            Map includedAttributes = (Map) this.attributesStack.peek();
            attributes.putAll(includedAttributes);
        }
        return Collections.enumeration(attributes.keySet());
    }

    public void removeAttribute(String name) {
        Object value = attributes.get(name);
        if (value == null)
View Full Code Here

        out.writeBoolean(isNew);
        out.writeBoolean(distributable);

        // Write the map, but first remove non-serializables
        Map copy = new HashMap(sessionData);
        Set keys = new HashSet(copy.keySet());
        for (Iterator i = keys.iterator(); i.hasNext();) {
            String key = (String) i.next();
            if (!(copy.get(key) instanceof Serializable)) {
                Logger.log(Logger.WARNING, Launcher.RESOURCES,
                                "WinstoneSession.SkippingNonSerializable",
View Full Code Here

                                        copy.get(key).getClass().getName() });
            }
            copy.remove(key);
        }
        out.writeInt(copy.size());
        for (Iterator i = copy.keySet().iterator(); i.hasNext();) {
            String key = (String) i.next();
            out.writeUTF(key);
            out.writeObject(copy.get(key));
        }
    }
View Full Code Here

            attrs.add (new MBeanAttributeInfo (attribute, "", getterMethod, setterMethod));
         }

         // we  add the remaining WO attributes
         //
         Iterator writeKeys = writeAttr.keySet().iterator();
         while (writeKeys.hasNext())
         {
            String setter = (String)writeKeys.next();
            Method setterMethod = (Method)writeAttr.get( setter );
            String attribute = setter.substring(3);
View Full Code Here

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.