Package java.util

Examples of java.util.LinkedHashSet.containsAll()


        // remove empty lists and sublists
        Set allElements = new LinkedHashSet();
        for (Iterator i = lists.iterator(); i.hasNext();) {
            List oneList = (List) i.next();
            if (oneList.isEmpty() || allElements.containsAll(oneList))
                i.remove();
            allElements.addAll(oneList);
        }

        // handle the trivial (and most common) cases
View Full Code Here


                Collection opStates = op.getAffectedItemStates();
                for (Iterator osIt = opStates.iterator(); osIt.hasNext();) {
                    ItemState state = (ItemState) osIt.next();
                    if (affectedStates.contains(state)) {
                        // operation needs to be included
                        if (!affectedStates.containsAll(opStates)) {
                            // incomplete changelog: need to save a parent as well
                            String msg = "ChangeLog is not self contained.";
                            throw new ConstraintViolationException(msg);
                        }
                        // no violation: add operation an stop iteration over
View Full Code Here

                Collection opStates = op.getAffectedItemStates();
                for (Iterator osIt = opStates.iterator(); osIt.hasNext();) {
                    ItemState state = (ItemState) osIt.next();
                    if (affectedStates.contains(state)) {
                        // operation needs to be included
                        if (!affectedStates.containsAll(opStates)) {
                            // incomplete changelog: need to save a parent as well
                            String msg = "ChangeLog is not self contained.";
                            throw new ConstraintViolationException(msg);
                        }
                        // no violation: add operation an stop iteration over
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.