ListDocument (AWS SDK for Java

ListDocument (AWS SDK for Java - 2.25.34)
All Implemented Interfaces:
Serializable, Document

See Also:
  • Nested Class Summary

    Nested Classes

    static class 

    Internal List Builder for easy construction of Document Lists.

  • Constructor Summary

    Constructors

    Create a New ListDocument with List of Document documentList as passed in constructor
  • Method Summary

    <R> R

    Accepts a visitor with the Document.

    void

    Accepts a visitor with the Document.

    boolean

    Gets the document as a List if it is a document type array.

    boolean

    int

    boolean

    Gets the value of the document as a Java type that represents the Loops through the individual Document and unwraps each of the document.

  • Constructor Details

    • ListDocument

      Create a New ListDocument with List of Document documentList as passed in constructor
      Parameters:
      documentList - ListDocument documentList.
  • Method Details

    • listBuilder

      Returns:
      Builder methods to Construct Document with List of Documents.
    • unwrap

      Gets the value of the document as a Java type that represents the Loops through the individual Document and unwraps each of the document.

      Specified by:
      unwrap in interface Document
      Returns:
      Returns the List<Object>.
    • asBoolean

      public boolean asBoolean()

      Specified by:
      asBoolean in interface Document
      Returns:
      Returns the boolean value.
    • asString

      Specified by:
      asString in interface Document
      Returns:
      Returns the string value.
    • asNumber

      Specified by:
      asNumber in interface Document
      Returns:
      Returns the SdkNumber.
    • asMap

      Specified by:
      asMap in interface Document
      Returns:
      Returns the Document map.
    • isList

      public boolean isList()

      Specified by:
      isList in interface Document
      Returns:
      true, since this is a Document List.
    • asList

      Description copied from interface: DocumentGets the document as a List if it is a document type array.

      Each value contained in the List is the same as how the value would be represented by Document.

      Specified by:
      asList in interface Document
      Returns:
      unmodifiableList of the List of Documents in the {ListDocument}.
    • accept

      Accepts a visitor with the Document.

      Specified by:
      accept in interface Document
      Type Parameters:
      R - visitor return type.
      Parameters:
      visitor - Visitor to dispatch to.
      Returns:
      Returns the accepted result by calling visitList of visitor.
    • accept

      Accepts a visitor with the Document. Calls visitList of visitor.

      Specified by:
      accept in interface Document
      Parameters:
      visitor - Visitor to dispatch to.
    • toString

      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()

      Overrides:
      hashCode in class Object

You Might Also Like