Class PolicyUtils.Comparison
java.lang.Object
com.sun.xml.ws.policy.privateutil.PolicyUtils.Comparison
- Enclosing class:
- PolicyUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<QName>The comparator comapres QName objects according to their publicly accessible attributes, in the following order of attributes: 1. -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareBoolean(boolean b1, boolean b2) Compares two boolean values in the following way:false < truestatic intcompareNullableStrings(String s1, String s2) Compares two String values, that may possibly be null in the following way:null < "string value"
-
Field Details
-
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)
-
-
Method Details
-
compareBoolean
public static int compareBoolean(boolean b1, boolean b2) Compares two boolean values in the following way:false < true- Returns:
-1ifb1 < b2,0ifb1 == b2,1ifb1 > b2
-
compareNullableStrings
Compares two String values, that may possibly be null in the following way:null < "string value"- Returns:
-1ifs1 < s2,0ifs1 == s2,1ifs1 > s2
-