equal
deleted
inserted
replaced
68 * which allow a byte buffer to be viewed as a buffer containing values of |
68 * which allow a byte buffer to be viewed as a buffer containing values of |
69 * some other primitive type; and </p></li> |
69 * some other primitive type; and </p></li> |
70 * |
70 * |
71 #end[byte] |
71 #end[byte] |
72 * |
72 * |
73 * <li><p> Methods for {@link #compact compacting}, {@link |
73 * <li><p> A method for {@link #compact compacting} |
74 * #duplicate duplicating}, and {@link #slice slicing} |
|
75 * $a$ $type$ buffer. </p></li> |
74 * $a$ $type$ buffer. </p></li> |
76 * |
75 * |
77 * </ul> |
76 * </ul> |
78 * |
77 * |
79 * <p> $Type$ buffers can be created either by {@link #allocate |
78 * <p> $Type$ buffers can be created either by {@link #allocate |
533 #if[byte] |
532 #if[byte] |
534 * |
533 * |
535 * @see #alignedSlice(int) |
534 * @see #alignedSlice(int) |
536 #end[byte] |
535 #end[byte] |
537 */ |
536 */ |
|
537 @Override |
538 public abstract $Type$Buffer slice(); |
538 public abstract $Type$Buffer slice(); |
539 |
539 |
540 /** |
540 /** |
541 * Creates a new $type$ buffer that shares this buffer's content. |
541 * Creates a new $type$ buffer that shares this buffer's content. |
542 * |
542 * |
555 * The new buffer will be direct if, and only if, this buffer is direct, and |
555 * The new buffer will be direct if, and only if, this buffer is direct, and |
556 * it will be read-only if, and only if, this buffer is read-only. </p> |
556 * it will be read-only if, and only if, this buffer is read-only. </p> |
557 * |
557 * |
558 * @return The new $type$ buffer |
558 * @return The new $type$ buffer |
559 */ |
559 */ |
|
560 @Override |
560 public abstract $Type$Buffer duplicate(); |
561 public abstract $Type$Buffer duplicate(); |
561 |
562 |
562 /** |
563 /** |
563 * Creates a new, read-only $type$ buffer that shares this buffer's |
564 * Creates a new, read-only $type$ buffer that shares this buffer's |
564 * content. |
565 * content. |