Class BooleanDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.BooleanDocument
- All Implemented Interfaces:
Serializable
,Document
Represents a Boolean Document.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanDocument
(boolean value) Create a NewBooleanDocument
with boolean value as passed in constructor -
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
Gets the boolean value of the Document.asList()
asMap()
asNumber()
asString()
boolean
int
hashCode()
boolean
Indicates this is a Boolean Document.toString()
unwrap()
Unwraps the Document Boolean to a Boolean Object.
-
Constructor Details
-
BooleanDocument
public BooleanDocument(boolean value) Create a NewBooleanDocument
with boolean value as passed in constructor- Parameters:
value
- boolean value.
-
-
Method Details
-
unwrap
Unwraps the Document Boolean to a Boolean Object. -
isBoolean
public boolean isBoolean()Indicates this is a Boolean Document. -
asBoolean
public boolean asBoolean()Gets the boolean value of the Document. -
asString
-
asNumber
-
asMap
-
asList
-
accept
Accepts a visitor with the Document. -
accept
Accepts a visitor with the Document. Calls visitBoolean of visitor. -
toString
-
equals
-
hashCode
public int hashCode()
-