Class Action


  • public final class Action
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Action create​(java.lang.String type)
      Create an action of certain type.
      static Action create​(java.lang.String type, java.util.Map<java.lang.String,​java.lang.String> data)
      Create an action of certain type and with data attached.
      java.util.Map<java.lang.String,​java.lang.String> getData()
      Unmodifiable action data.
      java.lang.String getType()
      Action to perform.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • create

        public static Action create​(java.lang.String type)
        Create an action of certain type.
        Parameters:
        type - type of action.
        Returns:
        new instance.
      • create

        public static Action create​(java.lang.String type,
                                    java.util.Map<java.lang.String,​java.lang.String> data)
        Create an action of certain type and with data attached.
        Parameters:
        type - type of action.
        data - attached data.
        Returns:
        new instance.
      • getType

        public java.lang.String getType()
        Action to perform.
        Returns:
        one of ActionTypes.
      • getData

        public java.util.Map<java.lang.String,​java.lang.String> getData()
        Unmodifiable action data.
        Returns:
        action data.
      • toString

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