26
26
* <p>
27
27
* Note that as MutableByte does not extend Byte, it is not treated by String.format as a Byte parameter.
28
28
* </p>
29
- * <p>
30
29
*
31
30
* @see Byte
32
31
* @see AtomicInteger
@@ -62,8 +61,8 @@ public MutableByte(final byte value) {
62
61
/**
63
62
* Constructs a new MutableByte with the specified value.
64
63
*
65
- * @param value the initial value to store, not null
66
- * @throws NullPointerException if the object is null
64
+ * @param value the initial value to store, not null.
65
+ * @throws NullPointerException if the object is null.
67
66
*/
68
67
public MutableByte (final Number value ) {
69
68
this .value = value .byteValue ();
@@ -72,7 +71,7 @@ public MutableByte(final Number value) {
72
71
/**
73
72
* Constructs a new MutableByte parsing the given string.
74
73
*
75
- * @param value the string to parse, not null
74
+ * @param value the string to parse, not null.
76
75
* @throws NumberFormatException if the string cannot be parsed into a byte, see {@link Byte#parseByte(String)}.
77
76
* @since 2.5
78
77
*/
@@ -83,7 +82,7 @@ public MutableByte(final String value) {
83
82
/**
84
83
* Adds a value to the value of this instance.
85
84
*
86
- * @param operand the value to add, not null
85
+ * @param operand the value to add, not null.
87
86
* @since 2.2
88
87
*/
89
88
public void add (final byte operand ) {
@@ -93,8 +92,8 @@ public void add(final byte operand) {
93
92
/**
94
93
* Adds a value to the value of this instance.
95
94
*
96
- * @param operand the value to add, not null
97
- * @throws NullPointerException if the object is null
95
+ * @param operand the value to add, not null.
96
+ * @throws NullPointerException if the object is null.
98
97
* @since 2.2
99
98
*/
100
99
public void add (final Number operand ) {
@@ -105,8 +104,8 @@ public void add(final Number operand) {
105
104
* Increments this instance's value by {@code operand}; this method returns the value associated with the instance
106
105
* immediately after the addition operation. This method is not thread safe.
107
106
*
108
- * @param operand the quantity to add, not null
109
- * @return the value associated with this instance after adding the operand
107
+ * @param operand the quantity to add, not null.
108
+ * @return the value associated with this instance after adding the operand.
110
109
* @since 3.5
111
110
*/
112
111
public byte addAndGet (final byte operand ) {
@@ -118,9 +117,9 @@ public byte addAndGet(final byte operand) {
118
117
* Increments this instance's value by {@code operand}; this method returns the value associated with the instance
119
118
* immediately after the addition operation. This method is not thread safe.
120
119
*
121
- * @param operand the quantity to add, not null
122
- * @throws NullPointerException if {@code operand} is null
123
- * @return the value associated with this instance after adding the operand
120
+ * @param operand the quantity to add, not null.
121
+ * @throws NullPointerException if {@code operand} is null.
122
+ * @return the value associated with this instance after adding the operand.
124
123
* @since 3.5
125
124
*/
126
125
public byte addAndGet (final Number operand ) {
@@ -142,8 +141,8 @@ public byte byteValue() {
142
141
/**
143
142
* Compares this mutable to another in ascending order.
144
143
*
145
- * @param other the other mutable to compare to, not null
146
- * @return negative if this is less, zero if equal, positive if greater
144
+ * @param other the other mutable to compare to, not null.
145
+ * @return negative if this is less, zero if equal, positive if greater.
147
146
*/
148
147
@ Override
149
148
public int compareTo (final MutableByte other ) {
@@ -163,7 +162,7 @@ public void decrement() {
163
162
* Decrements this instance's value by 1; this method returns the value associated with the instance
164
163
* immediately after the decrement operation. This method is not thread safe.
165
164
*
166
- * @return the value associated with the instance after it is decremented
165
+ * @return the value associated with the instance after it is decremented.
167
166
* @since 3.5
168
167
*/
169
168
public byte decrementAndGet () {
@@ -186,7 +185,7 @@ public double doubleValue() {
186
185
* not {@code null} and is a {@link MutableByte} object that contains the same {@code byte} value
187
186
* as this object.
188
187
*
189
- * @param obj the object to compare with, null returns false
188
+ * @param obj the object to compare with, null returns false.
190
189
* @return {@code true} if the objects are the same; {@code false} otherwise.
191
190
*/
192
191
@ Override
@@ -211,8 +210,8 @@ public float floatValue() {
211
210
* Increments this instance's value by {@code operand}; this method returns the value associated with the instance
212
211
* immediately prior to the addition operation. This method is not thread safe.
213
212
*
214
- * @param operand the quantity to add, not null
215
- * @return the value associated with this instance immediately before the operand was added
213
+ * @param operand the quantity to add, not null.
214
+ * @return the value associated with this instance immediately before the operand was added.
216
215
* @since 3.5
217
216
*/
218
217
public byte getAndAdd (final byte operand ) {
@@ -225,9 +224,9 @@ public byte getAndAdd(final byte operand) {
225
224
* Increments this instance's value by {@code operand}; this method returns the value associated with the instance
226
225
* immediately prior to the addition operation. This method is not thread safe.
227
226
*
228
- * @param operand the quantity to add, not null
229
- * @throws NullPointerException if {@code operand} is null
230
- * @return the value associated with this instance immediately before the operand was added
227
+ * @param operand the quantity to add, not null.
228
+ * @throws NullPointerException if {@code operand} is null.
229
+ * @return the value associated with this instance immediately before the operand was added.
231
230
* @since 3.5
232
231
*/
233
232
public byte getAndAdd (final Number operand ) {
@@ -240,7 +239,7 @@ public byte getAndAdd(final Number operand) {
240
239
* Decrements this instance's value by 1; this method returns the value associated with the instance
241
240
* immediately prior to the decrement operation. This method is not thread safe.
242
241
*
243
- * @return the value associated with the instance before it was decremented
242
+ * @return the value associated with the instance before it was decremented.
244
243
* @since 3.5
245
244
*/
246
245
public byte getAndDecrement () {
@@ -253,7 +252,7 @@ public byte getAndDecrement() {
253
252
* Increments this instance's value by 1; this method returns the value associated with the instance
254
253
* immediately prior to the increment operation. This method is not thread safe.
255
254
*
256
- * @return the value associated with the instance before it was incremented
255
+ * @return the value associated with the instance before it was incremented.
257
256
* @since 3.5
258
257
*/
259
258
public byte getAndIncrement () {
@@ -277,7 +276,7 @@ public Byte getValue() {
277
276
/**
278
277
* Returns a suitable hash code for this mutable.
279
278
*
280
- * @return a suitable hash code
279
+ * @return a suitable hash code.
281
280
*/
282
281
@ Override
283
282
public int hashCode () {
@@ -297,7 +296,7 @@ public void increment() {
297
296
* Increments this instance's value by 1; this method returns the value associated with the instance
298
297
* immediately after the increment operation. This method is not thread safe.
299
298
*
300
- * @return the value associated with the instance after it is incremented
299
+ * @return the value associated with the instance after it is incremented.
301
300
* @since 3.5
302
301
*/
303
302
public byte incrementAndGet () {
@@ -328,7 +327,7 @@ public long longValue() {
328
327
/**
329
328
* Sets the value.
330
329
*
331
- * @param value the value to set
330
+ * @param value the value to set.
332
331
*/
333
332
public void setValue (final byte value ) {
334
333
this .value = value ;
@@ -337,8 +336,8 @@ public void setValue(final byte value) {
337
336
/**
338
337
* Sets the value from any Number instance.
339
338
*
340
- * @param value the value to set, not null
341
- * @throws NullPointerException if the object is null
339
+ * @param value the value to set, not null.
340
+ * @throws NullPointerException if the object is null.
342
341
*/
343
342
@ Override
344
343
public void setValue (final Number value ) {
@@ -348,7 +347,7 @@ public void setValue(final Number value) {
348
347
/**
349
348
* Subtracts a value from the value of this instance.
350
349
*
351
- * @param operand the value to subtract, not null
350
+ * @param operand the value to subtract, not null.
352
351
* @since 2.2
353
352
*/
354
353
public void subtract (final byte operand ) {
@@ -358,8 +357,8 @@ public void subtract(final byte operand) {
358
357
/**
359
358
* Subtracts a value from the value of this instance.
360
359
*
361
- * @param operand the value to subtract, not null
362
- * @throws NullPointerException if the object is null
360
+ * @param operand the value to subtract, not null.
361
+ * @throws NullPointerException if the object is null.
363
362
* @since 2.2
364
363
*/
365
364
public void subtract (final Number operand ) {
@@ -369,7 +368,7 @@ public void subtract(final Number operand) {
369
368
/**
370
369
* Gets this mutable as an instance of Byte.
371
370
*
372
- * @return a Byte instance containing the value from this mutable
371
+ * @return a Byte instance containing the value from this mutable.
373
372
*/
374
373
public Byte toByte () {
375
374
return Byte .valueOf (byteValue ());
@@ -378,7 +377,7 @@ public Byte toByte() {
378
377
/**
379
378
* Returns the String value of this mutable.
380
379
*
381
- * @return the mutable value as a string
380
+ * @return the mutable value as a string.
382
381
*/
383
382
@ Override
384
383
public String toString () {
0 commit comments