Skip to main content
summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorpfullbright2012-02-24 17:28:08 +0000
committerpfullbright2012-02-24 17:28:08 +0000
commit25f37aa2aa1393eaf1c42ce5886fc780212d36a8 (patch)
tree00f814f2035611fac61eb366a90926f0e7d793b7 /common
parent534fbd89a9b6d27a7317f1f2e6a91d3254ddf551 (diff)
downloadwebtools.dali-25f37aa2aa1393eaf1c42ce5886fc780212d36a8.tar.gz
webtools.dali-25f37aa2aa1393eaf1c42ce5886fc780212d36a8.tar.xz
webtools.dali-25f37aa2aa1393eaf1c42ce5886fc780212d36a8.zip
added valueIsEqualToOneOf(Object, Object ... )
Diffstat (limited to 'common')
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java
index b4a4f03307..8bafa4341c 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java
@@ -36,6 +36,15 @@ public final class Tools {
(value2 != null) :
((value2 == null) || ! value1.equals(value2));
}
+
+ public static boolean valueIsEqualToOneOf(Object theValue, Object ... testValues) {
+ for (Object testValue : testValues) {
+ if (valuesAreEqual(theValue, testValue)) {
+ return true;
+ }
+ }
+ return false;
+ }
// ********** System properties **********

Back to the top