summaryrefslogtreecommitdiff
path: root/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java
diff options
context:
space:
mode:
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-31 16:26:40 +0000
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-31 16:26:40 +0000
commit808def96aa4589fba9c2d0ea55837754a3b7a4f7 (patch)
tree0ea221c59abb2474c694e7ab5bd61006be77e47e /Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java
parent9216450d1143056a50a5f916984a2d7faf590488 (diff)
downloadedk2-platforms-808def96aa4589fba9c2d0ea55837754a3b7a4f7.tar.xz
Retiring the ANT/JAVA build and removing the older EDK II packages that required ANT/JAVA.
Last Ant/Java build was r7166 Developers requiring the Java/Ant packages should checkout the branch from: https://edk2.tianocore.org/svn/edk2/branches/AntJava git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7168 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java')
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java86
1 files changed, 0 insertions, 86 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java
deleted file mode 100644
index b8a6d40b0e..0000000000
--- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/AggregationOperation.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/** @file
-
- Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
- **/
-
-package org.tianocore.frameworkwizard.far;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.tianocore.frameworkwizard.packaging.PackageIdentification;
-
-public class AggregationOperation {
-
- public static synchronized List<PackageIdentification> union(List<PackageIdentification> list1,
- List<PackageIdentification> list2) {
- List<PackageIdentification> result = new ArrayList<PackageIdentification>();
- result.addAll(list1);
- Iterator<PackageIdentification> iter = list2.iterator();
- while (iter.hasNext()) {
- PackageIdentification item = iter.next();
- if (!belongs(item, result)) {
- result.add(item);
- }
- }
- return result;
- }
-
- public static synchronized List<PackageIdentification> intersection(List<PackageIdentification> list1,
- List<PackageIdentification> list2) {
- List<PackageIdentification> result = new ArrayList<PackageIdentification>();
- Iterator<PackageIdentification> iter = list1.iterator();
- while (iter.hasNext()) {
- PackageIdentification item = iter.next();
- if (belongs(item, list2)) {
- result.add(item);
- }
- }
- return result;
- }
-
- public static synchronized List<PackageIdentification> minus(List<PackageIdentification> list1,
- List<PackageIdentification> list2) {
- List<PackageIdentification> result = new ArrayList<PackageIdentification>();
- Iterator<PackageIdentification> iter = list1.iterator();
- while (iter.hasNext()) {
- PackageIdentification item = iter.next();
- if (!belongs(item, list2)) {
- result.add(item);
- }
- }
- return result;
- }
-
- public static synchronized boolean belongs(PackageIdentification o, List<PackageIdentification> list) {
- Iterator<PackageIdentification> iter = list.iterator();
- while (iter.hasNext()) {
- if (iter.next().equalsWithGuid(o)) {
- return true;
- }
- }
- return false;
- }
-
- public static synchronized List<PackageIdentification> getExistedItems(PackageIdentification o,
- List<PackageIdentification> list) {
- List<PackageIdentification> result = new ArrayList<PackageIdentification>();
- Iterator<PackageIdentification> iter = list.iterator();
- while (iter.hasNext()) {
- PackageIdentification item = iter.next();
- if (item.equalsWithGuid(o)) {
- result.add(item);
- }
- }
- return result;
- }
-}