Exemplo n.º 1
0
 /*     */ 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;
   /*     */ }
Exemplo n.º 2
0
 /**
  * Retrieves a component of this compound name.
  *
  * @param posn The 0-based index of the component to retrieve. Must be in the range [0,size()).
  * @return The component at index posn.
  * @exception ArrayIndexOutOfBoundsException if posn is outside the specified range.
  */
 public String get(int posn) {
   return (impl.get(posn));
 }