Compares this CompoundName with the specified Object for order.
Returns a
negative integer, zero, or a positive integer as this Name is less
than, equal to, or greater than the given Object.
If obj is null or not an instance of CompoundName, ClassCastException
is thrown.
See equals() for what it means for two compound names to be equal.
If two compound names are equal, 0 is returned.
Ordering of compound names depend on the syntax of the compound name.
By default, they follow lexicographical rules for string comparison
with the extension that this applies to all the components in the
compound name and that comparison of individual components is
affected by the jndi.syntax.ignorecase and jndi.syntax.trimblanks
properties, identical to how they affect equals().
If this compound name is "lexicographically" lesser than obj,
a negative number is returned.
If this compound name is "lexicographically" greater than obj,
a positive number is returned.
Implementation note: Currently the syntax properties of the two compound
names are not compared when checking order. They might be in the future.
Returns:
a negative integer, zero, or a positive integer as this Name
is less than, equal to, or greater than the given Object.
Parameters:
- obj - The non-null object to compare against.
Throws:
- ClassCastException - if obj is not a CompoundName.
See Also:
CompoundName.equals(java.lang.Object)
,