public class NumberDocument extends Object implements Document
Document.ListBuilder, Document.MapBuilder| Constructor and Description |
|---|
NumberDocument(SdkNumber number)
Created a {
NumberDocument} with the specified {SdkNumber}. |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(DocumentVisitor<? extends R> visitor)
Accepts a visitor with the Document.
|
void |
accept(VoidDocumentVisitor visitor)
Accepts a visitor with the Document.
|
boolean |
asBoolean() |
List<Document> |
asList() |
Map<String,Document> |
asMap()
Gets the document as a
Map. |
SdkNumber |
asNumber()
Returned as {
SdkNumber}. |
String |
asString() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isNumber() |
String |
toString() |
Object |
unwrap()
Unwraps the Document Number to string value of the {
SdkNumber}. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfromBoolean, fromList, fromMap, fromNull, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromString, isBoolean, isList, isMap, isNull, isString, listBuilder, mapBuilderpublic NumberDocument(SdkNumber number)
NumberDocument} with the specified {SdkNumber}.
{SdkNumber} is provided as an input to NumberDocument to maintain arbitrary precision of any given number.number - public boolean asBoolean()
public String asString()
public boolean isNumber()
public SdkNumber asNumber()
SdkNumber}.
The number value can be extracted from the Document by using below methodspublic Map<String,Document> asMap()
DocumentMap.
Each value contained in the Map is the same as how the value
would be represented by Document.
public <R> R accept(DocumentVisitor<? extends R> visitor)
public void accept(VoidDocumentVisitor visitor)
Copyright © 2023. All rights reserved.