Class NumberDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.NumberDocument
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder -
Field Summary
Fields inherited from interface software.amazon.awssdk.core.document.Document
FALSE_DOCUMENT, NULL_DOCUMENT, TRUE_DOCUMENT -
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
-
asBoolean
-
asString
-
isNumber
-
asNumber
-
asMap
-
asList
-
accept
Accepts a visitor with the Document. -
accept
Accepts a visitor with the Document. Calls visitNumber of visitor. -
toString
-
equals
-
hashCode
-