changeset 27292 | 7ff4b24b33ce |
parent 26960 | d280345c2cfb |
child 31723 | 2e16a59cc5cb |
27291:42769f9ca831 | 27292:7ff4b24b33ce |
---|---|
1023 if (isReadOnly) |
1023 if (isReadOnly) |
1024 throw new ReadOnlyBufferException(); |
1024 throw new ReadOnlyBufferException(); |
1025 return offset; |
1025 return offset; |
1026 } |
1026 } |
1027 |
1027 |
1028 // -- Covariant return type overrides |
|
1029 |
|
1030 /** |
|
1031 * {@inheritDoc} |
|
1032 * @since 1.9 |
|
1033 */ |
|
1034 @Override |
|
1035 public |
|
1036 #if[!byte] |
|
1037 final |
|
1038 #end[!byte] |
|
1039 $Type$Buffer position(int newPosition) { |
|
1040 super.position(newPosition); |
|
1041 return this; |
|
1042 } |
|
1043 |
|
1044 /** |
|
1045 * {@inheritDoc} |
|
1046 * @since 1.9 |
|
1047 */ |
|
1048 @Override |
|
1049 public |
|
1050 #if[!byte] |
|
1051 final |
|
1052 #end[!byte] |
|
1053 $Type$Buffer limit(int newLimit) { |
|
1054 super.limit(newLimit); |
|
1055 return this; |
|
1056 } |
|
1057 |
|
1058 /** |
|
1059 * {@inheritDoc} |
|
1060 * @since 1.9 |
|
1061 */ |
|
1062 @Override |
|
1063 public |
|
1064 #if[!byte] |
|
1065 final |
|
1066 #end[!byte] |
|
1067 $Type$Buffer mark() { |
|
1068 super.mark(); |
|
1069 return this; |
|
1070 } |
|
1071 |
|
1072 /** |
|
1073 * {@inheritDoc} |
|
1074 * @since 1.9 |
|
1075 */ |
|
1076 @Override |
|
1077 public |
|
1078 #if[!byte] |
|
1079 final |
|
1080 #end[!byte] |
|
1081 $Type$Buffer reset() { |
|
1082 super.reset(); |
|
1083 return this; |
|
1084 } |
|
1085 |
|
1086 /** |
|
1087 * {@inheritDoc} |
|
1088 * @since 1.9 |
|
1089 */ |
|
1090 @Override |
|
1091 public |
|
1092 #if[!byte] |
|
1093 final |
|
1094 #end[!byte] |
|
1095 $Type$Buffer clear() { |
|
1096 super.clear(); |
|
1097 return this; |
|
1098 } |
|
1099 |
|
1100 /** |
|
1101 * {@inheritDoc} |
|
1102 * @since 1.9 |
|
1103 */ |
|
1104 @Override |
|
1105 public |
|
1106 #if[!byte] |
|
1107 final |
|
1108 #end[!byte] |
|
1109 $Type$Buffer flip() { |
|
1110 super.flip(); |
|
1111 return this; |
|
1112 } |
|
1113 |
|
1114 /** |
|
1115 * {@inheritDoc} |
|
1116 * @since 1.9 |
|
1117 */ |
|
1118 @Override |
|
1119 public |
|
1120 #if[!byte] |
|
1121 final |
|
1122 #end[!byte] |
|
1123 $Type$Buffer rewind() { |
|
1124 super.rewind(); |
|
1125 return this; |
|
1126 } |
|
1127 |
|
1028 /** |
1128 /** |
1029 * Compacts this buffer <i>(optional operation)</i>. |
1129 * Compacts this buffer <i>(optional operation)</i>. |
1030 * |
1130 * |
1031 * <p> The $type$s between the buffer's current position and its limit, |
1131 * <p> The $type$s between the buffer's current position and its limit, |
1032 * if any, are copied to the beginning of the buffer. That is, the |
1132 * if any, are copied to the beginning of the buffer. That is, the |