Class NumberDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.NumberDocument
- All Implemented Interfaces:
 Serializable,Document
- See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder - 
Constructor Summary
ConstructorsConstructorDescriptionNumberDocument(SdkNumber number) Created a {NumberDocument} with the specified {SdkNumber}. - 
Method Summary
Modifier and TypeMethodDescription<R> Raccept(DocumentVisitor<? extends R> visitor) Accepts a visitor with the Document.voidaccept(VoidDocumentVisitor visitor) Accepts a visitor with the Document.booleanasList()asMap()Gets the document as aMap.asNumber()Returned as {SdkNumber}.asString()booleaninthashCode()booleanisNumber()toString()unwrap()Unwraps the Document Number to string value of the {SdkNumber}. 
- 
Constructor Details
- 
NumberDocument
Created a {NumberDocument} with the specified {SdkNumber}. {SdkNumber} is provided as an input to NumberDocument to maintain arbitrary precision of any given number.- Parameters:
 number-
 
 - 
 - 
Method Details
- 
unwrap
Unwraps the Document Number to string value of the {SdkNumber}. - 
asBoolean
public boolean asBoolean() - 
asString
 - 
isNumber
public boolean isNumber() - 
asNumber
Returned as {SdkNumber}. The number value can be extracted from the Document by using below methods - 
asMap
Description copied from interface:DocumentGets the document as aMap.Each value contained in the
Mapis the same as how the value would be represented byDocument. - 
asList
 - 
accept
Accepts a visitor with the Document. - 
accept
Accepts a visitor with the Document. Calls visitNumber of visitor. - 
toString
 - 
equals
 - 
hashCode
public int hashCode() 
 -