Package java.util

Examples of java.util.HashSet.removeAll()


            // it's time to update parent resolved and evicted with what was found

            Collection evicted = new HashSet(ancestor.getNode().getEvictedNodes(node.getModuleId(),
                node.getRootModuleConf()));
            toevict.removeAll(resolved);
            evicted.removeAll(resolved);
            evicted.addAll(toevict);
            evicted.add(node.getNode());
            ancestor.getNode().setEvictedNodes(node.getModuleId(), node.getRootModuleConf(),
                evicted);
            ancestor.getNode().setPendingConflicts(node.getModuleId(), node.getRootModuleConf(),
View Full Code Here


            return propertyNames;
        }

        NodeState other = (NodeState) getOverlayedState();
        HashSet set = new HashSet(propertyNames);
        set.removeAll(other.propertyNames);
        return set;
    }

    /**
     * Returns a list of child node entries that do not exist in the overlayed
View Full Code Here

            return Collections.EMPTY_SET;
        }

        NodeState other = (NodeState) getOverlayedState();
        HashSet set = new HashSet(other.propertyNames);
        set.removeAll(propertyNames);
        return set;
    }

    /**
     * Returns a list of child node entries, that exist in the overlayed node state
View Full Code Here

        if (!hasOverlayedState() || !isShareable()) {
            return Collections.EMPTY_SET;
        }
        NodeState other = (NodeState) getOverlayedState();
        HashSet set = new HashSet(sharedSet);
        set.removeAll(other.sharedSet);
        return set;
    }

    /**
     * Returns a set of shares that were removed.
View Full Code Here

        if (!hasOverlayedState() || !isShareable()) {
            return Collections.EMPTY_SET;
        }
        NodeState other = (NodeState) getOverlayedState();
        HashSet set = new HashSet(other.sharedSet);
        set.removeAll(sharedSet);
        return set;
    }

    //--------------------------------------------------< ItemState overrides >
View Full Code Here

        Set newDefs = new HashSet(Arrays.asList(entNew.getAllItemDefs()));
        Set allDefs = new HashSet(Arrays.asList(entAll.getAllItemDefs()));

        // added child item definitions
        Set addedDefs = new HashSet(newDefs);
        addedDefs.removeAll(oldDefs);

        // referential integrity check
        boolean referenceableOld = entOld.includesNodeType(NameConstants.MIX_REFERENCEABLE);
        boolean referenceableNew = entNew.includesNodeType(NameConstants.MIX_REFERENCEABLE);
        if (referenceableOld && !referenceableNew) {
View Full Code Here

            if ((isVisible(source) || all.contains(source))
                && (isVisible(target) || all.contains(target)))
              all.add(obj);
          }
        }
        all.removeAll(visibleSet);
        all.remove(null);
        return all.toArray();
      } else {
        if (hidesExistingConnections) {
          Set all = new HashSet();
View Full Code Here

          tmp.addAll(attributes.keySet());
        if (cs != null)
          tmp.addAll(cs.getChangedEdges());
        if (pm != null)
          tmp.addAll(pm.getChangedNodes());
        tmp.removeAll(visibleSet);
        if (!tmp.isEmpty())
          visible = tmp.toArray();
      }
      GraphLayoutCacheEdit edit = createLocalEdit(null, attributes,
          visible, null);
View Full Code Here

  }

  private void appendNonMatchingSetsErrorMessage(Set assertionSet, Set incorrectSet, StringBuffer buf) {
    Set tempSet = new HashSet();
    tempSet.addAll(incorrectSet);
    tempSet.removeAll(assertionSet);
   
    if (tempSet.size() > 0) {
      buf.append("Set has too many elements:\n");
      Iterator it = tempSet.iterator();
      while (it.hasNext()) {
View Full Code Here

      }
    }
   
    tempSet = new HashSet();
    tempSet.addAll(assertionSet);
    tempSet.removeAll(incorrectSet);
   
    if (tempSet.size() > 0) {
      buf.append("Set is missing elements:\n");
      Iterator it = tempSet.iterator();
      while (it.hasNext()) {
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.