Skip to content

Commit 07b54c9

Browse files
committed
update Java version
1 parent 85a0105 commit 07b54c9

File tree

6 files changed

+127
-676
lines changed

6 files changed

+127
-676
lines changed

api/com.upokecenter.cbor.CBORObject.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@
134134
Converts this object to an arbitrary-precision integer if this CBOR object's
135135
type is Integer.
136136

137+
* `UUID AsGuid()`<br>
138+
Converts this object to a java.util.UUID.
139+
137140
* `int AsInt32()`<br>
138141
Converts this object to a 32-bit signed integer.
139142

@@ -300,6 +303,9 @@
300303
Generates a CBOR object from a floating-point number represented by its
301304
bits.
302305

306+
* `static CBORObject FromGuid(UUID value)`<br>
307+
Generates a CBOR object from a java.util.UUID.
308+
303309
* `static CBORObject FromInt16(short value)`<br>
304310
Generates a CBOR object from a 16-bit signed integer.
305311

@@ -363,6 +369,9 @@
363369
Generates a CBOR object from a text string in JavaScript object Notation
364370
(JSON) format, using the specified options to control the decoding process.
365371

372+
* `static CBORObject FromMap(Iterable<Map.Entry<CBORObject,CBORObject>> keysAndValues)`<br>
373+
Creates a new CBOR map that stores its keys in an undefined order.
374+
366375
* `static CBORObject FromObject(boolean value)`<br>
367376
Deprecated.
368377
Use FromBool instead.
@@ -457,6 +466,9 @@ Use FromCBORObjectAndTag instead.
457466
Deprecated.
458467
Use FromCBORObjectAndTag instead.
459468

469+
* `static CBORObject FromOrderedMap(Iterable<Map.Entry<CBORObject,CBORObject>> keysAndValues)`<br>
470+
Creates a new CBOR map that ensures that keys are stored in order.
471+
460472
* `static CBORObject FromSimpleValue(int simpleValue)`<br>
461473
Creates a CBOR object from a simple value number.
462474

@@ -2327,6 +2339,18 @@ Generates a CBOR object from a 32-bit signed integer.
23272339

23282340
* A CBOR object.
23292341

2342+
### FromGuid
2343+
public static CBORObject FromGuid(UUID value)
2344+
Generates a CBOR object from a java.util.UUID.
2345+
2346+
**Parameters:**
2347+
2348+
* <code>value</code> - The parameter <code>value</code> is a java.util.UUID.
2349+
2350+
**Returns:**
2351+
2352+
* A CBOR object.
2353+
23302354
### FromObject
23312355
@Deprecated public static CBORObject FromObject(int value)
23322356
Generates a CBOR object from a 32-bit signed integer.
@@ -2960,6 +2984,18 @@ Creates a new empty CBOR map that stores its keys in an undefined order.
29602984

29612985
* A new CBOR map.
29622986

2987+
### FromMap
2988+
public static CBORObject FromMap(Iterable<Map.Entry<CBORObject,CBORObject>> keysAndValues)
2989+
Creates a new CBOR map that stores its keys in an undefined order.
2990+
2991+
**Parameters:**
2992+
2993+
* <code>keysAndValues</code> - A sequence of key-value pairs.
2994+
2995+
**Returns:**
2996+
2997+
* A new CBOR map.
2998+
29632999
### NewOrderedMap
29643000
public static CBORObject NewOrderedMap()
29653001
Creates a new empty CBOR map that ensures that keys are stored in the order
@@ -2969,6 +3005,18 @@ Creates a new empty CBOR map that ensures that keys are stored in the order
29693005

29703006
* A new CBOR map.
29713007

3008+
### FromOrderedMap
3009+
public static CBORObject FromOrderedMap(Iterable<Map.Entry<CBORObject,CBORObject>> keysAndValues)
3010+
Creates a new CBOR map that ensures that keys are stored in order.
3011+
3012+
**Parameters:**
3013+
3014+
* <code>keysAndValues</code> - A sequence of key-value pairs.
3015+
3016+
**Returns:**
3017+
3018+
* A new CBOR map.
3019+
29723020
### ReadSequence
29733021
public static CBORObject[] ReadSequence(InputStream stream) throws IOException
29743022
Reads a sequence of objects in CBOR format from a data stream. This method
@@ -3986,6 +4034,20 @@ Converts this object to a 32-bit floating point number.
39864034
this purpose, infinities and not-a-number or NaN values, but not
39874035
CBORObject.Null, are considered numbers).
39884036

4037+
### AsGuid
4038+
public UUID AsGuid()
4039+
Converts this object to a java.util.UUID.
4040+
4041+
**Returns:**
4042+
4043+
* A java.util.UUID.
4044+
4045+
**Throws:**
4046+
4047+
* <code>IllegalStateException</code> - This object does not represent a java.util.UUID.
4048+
4049+
* <code>CBORException</code> - This object does not have the expected tag.
4050+
39894051
### AsString
39904052
public String AsString()
39914053
<p>Gets the value of this object as a text string.</p> <p>This method is not

0 commit comments

Comments
 (0)