Skip to content

Commit df7b3da

Browse files
committed
update Java version
1 parent 0339be6 commit df7b3da

11 files changed

+46
-36
lines changed

api/com.upokecenter.util.BigInteger.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Use EInteger from PeterO.Numbers/com.upokecenter.numbers.
1919
Deprecated. Finds the minimum number of bits needed to represent this object's
2020
value, except for its sign.
2121
* `int compareTo(BigInteger other)`<br>
22-
Deprecated. Not documented yet.
22+
Deprecated. Compares this value to another.
2323
* `boolean equals(Object obj)`<br>
2424
Deprecated. Determines whether this object and another object are equal.
2525
* `static BigInteger fromBytes(byte[] bytes,
@@ -244,8 +244,9 @@ Deprecated.&nbsp;
244244

245245
**Parameters:**
246246

247-
* <code>other</code> - The parameter <code>other</code> is a BigInteger object.
247+
* <code>other</code> - The parameter <code>other</code> is an arbitrary-precision integer.
248248

249249
**Returns:**
250250

251-
* A 32-bit signed integer.
251+
* Less than 0 if this value is less than, 0 if equal to, or greater
252+
than 0 if greater than the other value.

api/com.upokecenter.util.ExtendedDecimal.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Use EDecimal from PeterO.Numbers/com.upokecenter.numbers.
3434
## Methods
3535

3636
* `int compareTo(ExtendedDecimal other)`<br>
37-
Deprecated. Not documented yet.
37+
Deprecated. Compares this extended decimal to another.
3838
* `static ExtendedDecimal Create(BigInteger mantissa,
3939
BigInteger exponent)`<br>
4040
Deprecated. Creates a number with the value exponent*10^mantissa.
@@ -295,7 +295,8 @@ Deprecated.&nbsp;
295295

296296
**Returns:**
297297

298-
* A 32-bit signed integer.
298+
* Less than 0 if this value is less than, 0 if equal to, or greater
299+
than 0 if greater than the other extended decimal.
299300

300301
### signum
301302
@Deprecated public final int signum()

api/com.upokecenter.util.ExtendedFloat.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Use EFloat from PeterO.Numbers/com.upokecenter.numbers.
3838
## Methods
3939

4040
* `int compareTo(ExtendedFloat other)`<br>
41-
Deprecated. Not documented yet.
41+
Deprecated. Compares this extended float to another.
4242
* `static ExtendedFloat Create(BigInteger mantissa,
4343
BigInteger exponent)`<br>
4444
Deprecated. Creates a number with the value exponent*2^mantissa.
@@ -58,7 +58,7 @@ Use EFloat from PeterO.Numbers/com.upokecenter.numbers.
5858
Use EFloat from PeterO.Numbers/com.upokecenter.numbers.
5959
Use EFloat from PeterO.Numbers/com.upokecenter.numbers.
6060
* `static ExtendedFloat FromString(String str)`<br>
61-
Deprecated. Not documented yet.
61+
Deprecated. Creates a binary float from a text string that represents a number.
6262
* `static ExtendedFloat FromString(String str,
6363
int offset,
6464
int length,
@@ -289,11 +289,11 @@ Deprecated.&nbsp;
289289

290290
**Parameters:**
291291

292-
* <code>str</code> - The parameter <code>str</code> is not documented yet.
292+
* <code>str</code> - A text string containing the number to convert.
293293

294294
**Returns:**
295295

296-
* An ExtendedFloat object.
296+
* The parsed number, converted to arbitrary-precision binary float.
297297

298298
### toString
299299
public String toString()
@@ -383,7 +383,8 @@ Deprecated.&nbsp;
383383

384384
**Returns:**
385385

386-
* A 32-bit signed integer.
386+
* Less than 0 if this value is less than, 0 if equal to, or greater
387+
than 0 if greater than the other value.
387388

388389
### signum
389390
@Deprecated public final int signum()

api/com.upokecenter.util.ExtendedRational.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ Use ERational from PeterO.Numbers/com.upokecenter.numbers.
3939
## Methods
4040

4141
* `int compareTo(ExtendedRational other)`<br>
42-
Deprecated. Not documented yet.
42+
Deprecated. Compares this value to another.
4343
* `static ExtendedRational Create(BigInteger numerator,
4444
BigInteger denominator)`<br>
4545
Deprecated. Creates a rational number with the given numerator and denominator.
4646
* `static ExtendedRational Create(int numeratorSmall,
4747
int denominatorSmall)`<br>
4848
Deprecated. Creates a rational number with the given numerator and denominator.
4949
* `boolean equals(ExtendedRational other)`<br>
50-
Deprecated. Not documented yet.
50+
Deprecated. Checks whether this and another value are equal.
5151
* `boolean equals(Object obj)`<br>
52-
Deprecated. Not documented yet.
52+
Deprecated. Checks whether this and another value are equal.
5353
* `BigInteger getDenominator()`<br>
5454
Deprecated. Gets this object's denominator.
5555
* `BigInteger getNumerator()`<br>
@@ -228,7 +228,8 @@ Deprecated.&nbsp;
228228

229229
**Returns:**
230230

231-
* A 32-bit signed integer.
231+
* Less than 0 if this value is less than, 0 if equal to, or greater
232+
than 0 if greater than the other value.
232233

233234
### equals
234235
public boolean equals(ExtendedRational other)
@@ -240,7 +241,7 @@ Deprecated.&nbsp;
240241

241242
**Returns:**
242243

243-
* either <code>true</code> or <code>false</code>.
244+
* Either <code>true</code> or <code>false</code>.
244245

245246
### equals
246247
public boolean equals(Object obj)
@@ -256,7 +257,7 @@ Deprecated.&nbsp;
256257

257258
**Returns:**
258259

259-
* either <code>true</code> or <code>false</code>.
260+
* Either <code>true</code> or <code>false</code>.
260261

261262
### hashCode
262263
public int hashCode()

src/main/java/com/upokecenter/cbor/CBORObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4623,7 +4623,7 @@ private static List<Object> WriteChildObject(
46234623
WriteObjectMap(child.AsMap(), outputStream, stack, options);
46244624
stack.remove(stack.size() - 1);
46254625
} else {
4626-
child.WriteTo(outputStream);
4626+
child.WriteTo(outputStream, options);
46274627
}
46284628
}
46294629
return stack;

src/main/java/com/upokecenter/cbor/CBORReader.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ public CBORObject ReadForFirstByte(
225225
throw new CBORException("Length" + ToUnsignedBigInteger(len) +
226226
" is bigger than supported ");
227227
}
228-
if (nextByte != 0x40) { // NOTE: 0x40 means the empty byte String
228+
if (nextByte != 0x40) {
229+
// NOTE: 0x40 means the empty byte String
229230
ReadByteData(this.stream, len, ms);
230231
}
231232
}
@@ -278,7 +279,8 @@ public CBORObject ReadForFirstByte(
278279
throw new CBORException("Length" + ToUnsignedBigInteger(len) +
279280
" is bigger than supported");
280281
}
281-
if (nextByte != 0x60) { // NOTE: 0x60 means the empty String
282+
if (nextByte != 0x60) {
283+
// NOTE: 0x60 means the empty String
282284
if (PropertyMap.ExceedsKnownLength(this.stream, len)) {
283285
throw new CBORException("Premature end of data");
284286
}

src/main/java/com/upokecenter/util/BigInteger.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,10 @@ public String toRadixString(int radix) {
211211
}
212212

213213
/**
214-
* Not documented yet.
215-
* @param other The parameter {@code other} is a BigInteger object.
216-
* @return A 32-bit signed integer.
214+
* Compares this value to another.
215+
* @param other The parameter {@code other} is an arbitrary-precision integer.
216+
* @return Less than 0 if this value is less than, 0 if equal to, or greater
217+
* than 0 if greater than the other value.
217218
*/
218219
public int compareTo(BigInteger other) {
219220
return this.getEi().compareTo(other == null ? null : other.getEi());

src/main/java/com/upokecenter/util/ExtendedDecimal.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,10 @@ public boolean IsQuietNaN() {
364364
}
365365

366366
/**
367-
* Not documented yet.
367+
* Compares this extended decimal to another.
368368
* @param other The parameter {@code other} is an ExtendedDecimal object.
369-
* @return A 32-bit signed integer.
369+
* @return Less than 0 if this value is less than, 0 if equal to, or greater
370+
* than 0 if greater than the other extended decimal.
370371
*/
371372
public int compareTo(ExtendedDecimal other) {
372373
return this.getEd().compareTo(other == null ? null : other.getEd());

src/main/java/com/upokecenter/util/ExtendedFloat.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ public static ExtendedFloat FromString(
244244
}
245245

246246
/**
247-
* Not documented yet.
248-
* @param str The parameter {@code str} is not documented yet.
249-
* @return An ExtendedFloat object.
247+
* Creates a binary float from a text string that represents a number.
248+
* @param str A text string containing the number to convert.
249+
* @return The parsed number, converted to arbitrary-precision binary float.
250250
*/
251251
public static ExtendedFloat FromString(String str) {
252252
return new ExtendedFloat(EFloat.FromString(str));
@@ -398,9 +398,10 @@ public boolean IsSignalingNaN() {
398398
}
399399

400400
/**
401-
* Not documented yet.
401+
* Compares this extended float to another.
402402
* @param other The parameter {@code other} is not documented yet.
403-
* @return A 32-bit signed integer.
403+
* @return Less than 0 if this value is less than, 0 if equal to, or greater
404+
* than 0 if greater than the other value.
404405
*/
405406
public int compareTo(ExtendedFloat other) {
406407
return this.getEf().compareTo(other == null ? null : other.getEf());

src/main/java/com/upokecenter/util/ExtendedRational.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,27 +243,28 @@ private static ExtendedRational FromBigIntegerInternal(BigInteger bigint) {
243243
}
244244

245245
/**
246-
* Not documented yet.
246+
* Compares this value to another.
247247
* @param other The parameter {@code other} is an ExtendedRational object.
248-
* @return A 32-bit signed integer.
248+
* @return Less than 0 if this value is less than, 0 if equal to, or greater
249+
* than 0 if greater than the other value.
249250
*/
250251
public int compareTo(ExtendedRational other) {
251252
return this.getEr().compareTo(other == null ? null : other.getEr());
252253
}
253254

254255
/**
255-
* Not documented yet.
256+
* Checks whether this and another value are equal.
256257
* @param other The parameter {@code other} is an ExtendedRational object.
257-
* @return either {@code true} or {@code false}.
258+
* @return Either {@code true} or {@code false}.
258259
*/
259260
public boolean equals(ExtendedRational other) {
260261
return this.getEr().equals(other == null ? null : other.getEr());
261262
}
262263

263264
/**
264-
* Not documented yet.
265+
* Checks whether this and another value are equal.
265266
* @param obj The parameter {@code obj} is an arbitrary object.
266-
* @return either {@code true} or {@code false}.
267+
* @return Either {@code true} or {@code false}.
267268
*/
268269
@Override public boolean equals(Object obj) {
269270
ExtendedRational other = ((obj instanceof ExtendedRational) ? (ExtendedRational)obj : null);

0 commit comments

Comments
 (0)