/*     */ 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;
   /*     */ }
Exemple #2
0
 /**
  * Retrieves the components of this compound name as an enumeration of strings. The effects of
  * updates to this compound name on this enumeration is undefined.
  *
  * @return A non-null enumeration of the components of this compound name. Each element of the
  *     enumeration is of class String.
  */
 public Enumeration<String> getAll() {
   return (impl.getAll());
 }