@Override
 public String toString() {
   final StringBuilder buf = new StringBuilder("{");
   TFloatIterator it = iterator();
   while (it.hasNext()) {
     float next = it.next();
     buf.append(next);
     if (it.hasNext()) buf.append(", ");
   }
   buf.append("}");
   return buf.toString();
 }
示例#2
0
 /** {@inheritDoc} */
 @Override
 public String toString() {
   final StringBuilder buf = new StringBuilder("{");
   for (int i = 0, end = _pos - 1; i < end; i++) {
     buf.append(_data[i]);
     buf.append(", ");
   }
   if (size() > 0) {
     buf.append(_data[_pos - 1]);
   }
   buf.append("}");
   return buf.toString();
 }
 /** {@inheritDoc} */
 public String toString() {
   StringBuilder buffy = new StringBuilder(_size * 2 + 2);
   buffy.append("{");
   for (int i = _states.length, j = 1; i-- > 0; ) {
     if (_states[i] == FULL) {
       buffy.append(_set[i]);
       if (j++ < _size) {
         buffy.append(",");
       }
     }
   }
   buffy.append("}");
   return buffy.toString();
 }