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
-
Constructor Summary
ConstructorsConstructorDescriptionNumberDocument
(SdkNumber number) Created a {NumberDocument
} with the specified {SdkNumber
}. -
Method Summary
Modifier and TypeMethodDescription<R> R
accept
(DocumentVisitor<? extends R> visitor) Accepts a visitor with the Document.void
accept
(VoidDocumentVisitor visitor) Accepts a visitor with the Document.boolean
asList()
asMap()
Gets the document as aMap
.asNumber()
Returned as {SdkNumber
}.asString()
boolean
int
hashCode()
boolean
isNumber()
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
-