Class Action

    • Method Detail

      • _kind

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

        public boolean isAdd()
        Is this variant instance of kind add?
      • add

        public AddAction add()
        Get the add variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the add kind.
      • isRemove

        public boolean isRemove()
        Is this variant instance of kind remove?
      • remove

        public RemoveAction remove()
        Get the remove variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the remove kind.
      • isRemoveIndex

        public boolean isRemoveIndex()
        Is this variant instance of kind remove_index?
      • removeIndex

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