/* */ public boolean equals(Object paramObject) { /* 474 */ if ((paramObject != null) && ((paramObject instanceof NameImpl))) { /* 475 */ NameImpl localNameImpl = (NameImpl) paramObject; /* 476 */ if (localNameImpl.size() == size()) { /* 477 */ Enumeration localEnumeration1 = getAll(); /* 478 */ Enumeration localEnumeration2 = localNameImpl.getAll(); /* 479 */ while (localEnumeration1.hasMoreElements()) /* */ { /* 481 */ String str1 = (String) localEnumeration1.nextElement(); /* 482 */ String str2 = (String) localEnumeration2.nextElement(); /* 483 */ if (this.syntaxTrimBlanks) { /* 484 */ str1 = str1.trim(); /* 485 */ str2 = str2.trim(); /* */ } /* 487 */ if (this.syntaxCaseInsensitive) { /* 488 */ if (!str1.equalsIgnoreCase(str2)) /* 489 */ return false; /* */ } /* 491 */ else if (!str1.equals(str2)) { /* 492 */ return false; /* */ } /* */ } /* 495 */ return true; /* */ } /* */ } /* 498 */ return false; /* */ }
/* */ public int compareTo(NameImpl paramNameImpl) /* */ { /* 510 */ if (this == paramNameImpl) { /* 511 */ return 0; /* */ } /* */ /* 514 */ int i = size(); /* 515 */ int j = paramNameImpl.size(); /* 516 */ int k = Math.min(i, j); /* */ /* 518 */ int m = 0; int n = 0; /* */ /* 520 */ while (k-- != 0) { /* 521 */ String str1 = get(m++); /* 522 */ String str2 = paramNameImpl.get(n++); /* */ /* 525 */ if (this.syntaxTrimBlanks) { /* 526 */ str1 = str1.trim(); /* 527 */ str2 = str2.trim(); /* */ } /* 529 */ if (this.syntaxCaseInsensitive) { /* 530 */ str1 = str1.toLowerCase(); /* 531 */ str2 = str2.toLowerCase(); /* */ } /* 533 */ int i1 = str1.compareTo(str2); /* 534 */ if (i1 != 0) { /* 535 */ return i1; /* */ } /* */ } /* */ /* 539 */ return i - j; /* */ }
/** * Retrieves the number of components in this compound name. * * @return The nonnegative number of components in this compound name. */ public int size() { return (impl.size()); }