com.sun.xml.ws.policy.privateutil
Class PolicyUtils.Comparison
java.lang.Object
com.sun.xml.ws.policy.privateutil.PolicyUtils.Comparison
- Enclosing class:
- PolicyUtils
public static class PolicyUtils.Comparison
- extends Object
|
Field Summary |
static Comparator<QName> |
QNAME_COMPARATOR
The comparator comapres QName objects according to their publicly accessible attributes, in the following
order of attributes:
1. |
|
Method Summary |
static int |
compareBoolean(boolean b1,
boolean b2)
Compares two boolean values in the following way: false < true |
static int |
compareNullableStrings(String s1,
String s2)
Compares two String values, that may possibly be null in the following way: null < "string value" |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNAME_COMPARATOR
public static final Comparator<QName> QNAME_COMPARATOR
- The comparator comapres QName objects according to their publicly accessible attributes, in the following
order of attributes:
1. namespace (not null String)
2. local name (not null String)
PolicyUtils.Comparison
public PolicyUtils.Comparison()
compareBoolean
public static int compareBoolean(boolean b1,
boolean b2)
- Compares two boolean values in the following way:
false < true
- Returns:
-1 if b1 < b2, 0 if b1 == b2, 1 if b1 > b2
compareNullableStrings
public static int compareNullableStrings(String s1,
String s2)
- Compares two String values, that may possibly be null in the following way:
null < "string value"
- Returns:
-1 if s1 < s2, 0 if s1 == s2, 1 if s1 > s2
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.