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
ConstructorDescriptionNumberDocument
(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
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:Document
Gets the document as aMap
.Each value contained in the
Map
is 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()
-