Class Action<E>



  • public class Action<E>
    extends java.lang.Object
    Synchronous action that can be dispatched in a Store to kick of state changes.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Action(java.lang.String actionType)
      Create an Action without a payload.
      Action(java.lang.String actionType, E data)
      Create an Action
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getActionType()
      Gets the action type
      <F> F getData() 
      <F> F getData(java.lang.Class<F> clazz) 
      E getRawData()
      Gets the payload.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Action

        public Action(java.lang.String actionType,
                      E data)
        Create an Action
        Parameters:
        actionType - type of the action
        data - payload of the action
      • Action

        public Action(java.lang.String actionType)
        Create an Action without a payload.
        Parameters:
        actionType - type of the action
    • Method Detail

      • getActionType

        public java.lang.String getActionType()
        Gets the action type
      • getRawData

        public E getRawData()
        Gets the payload.
      • getData

        public <F> F getData(java.lang.Class<F> clazz)
      • getData

        public <F> F getData()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object