Returns a string representing the state of this short buffer. @return a string representing the state of this short buffer.
()
| 523 | * @return a string representing the state of this short buffer. |
| 524 | */ |
| 525 | @Override |
| 526 | public String toString() { |
| 527 | StringBuilder buf = new StringBuilder(); |
| 528 | buf.append(getClass().getName()); |
| 529 | buf.append(", status: capacity="); //$NON-NLS-1$ |
| 530 | buf.append(capacity()); |
| 531 | buf.append(" position="); //$NON-NLS-1$ |
| 532 | buf.append(position()); |
| 533 | buf.append(" limit="); //$NON-NLS-1$ |
| 534 | buf.append(limit()); |
| 535 | return buf.toString(); |
| 536 | } |
| 537 | } |