Class Like

    • Method Detail

      • _kind

        public final Like.Kind _kind()
        Description copied from interface: TaggedUnion
        Get the of the kind of variant held by this object.
        Specified by:
        _kind in interface TaggedUnion<Like.Kind,​java.lang.Object>
        Returns:
        the variant kind
      • _get

        public final java.lang.Object _get()
        Specified by:
        _get in interface TaggedUnion<Like.Kind,​java.lang.Object>
      • isDocument

        public boolean isDocument()
        Is this variant instance of kind document?
      • document

        public LikeDocument document()
        Get the document variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the document kind.
      • isText

        public boolean isText()
        Is this variant instance of kind text?
      • text

        public java.lang.String text()
        Get the text variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the text kind.