コード例 #1
0
ファイル: TDWay.java プロジェクト: hurleyman/VectorTileMap
 private void addTags(short[] addendum) { // NOPMD by bross on 25.12.11 13:04
   if (this.tags == null) {
     this.tags = addendum;
   } else {
     TShortSet tags2 = new TShortHashSet();
     tags2.addAll(this.tags);
     tags2.addAll(addendum);
     this.tags = tags2.toArray();
   }
 }
コード例 #2
0
 /** {@inheritDoc} */
 public boolean equals(Object other) {
   if (!(other instanceof TShortSet)) {
     return false;
   }
   TShortSet that = (TShortSet) other;
   if (that.size() != this.size()) {
     return false;
   }
   for (int i = _states.length; i-- > 0; ) {
     if (_states[i] == FULL) {
       if (!that.contains(_set[i])) {
         return false;
       }
     }
   }
   return true;
 }