Class CommandPostprocessingContext<C>

  • Type Parameters:
    C - Command sender type

    public final class CommandPostprocessingContext<C>
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NonNull Command<@NonNull C> getCommand()
      Get the command instance
      @NonNull CommandContext<@NonNull C> getCommandContext()
      Get the command context
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandPostprocessingContext

        public CommandPostprocessingContext​(@NonNull CommandContext<@NonNull C> commandContext,
                                            @NonNull Command<@NonNull C> command)
        Construct a new command postprocessing context
        Parameters:
        commandContext - Command context
        command - Command instance
    • Method Detail

      • getCommandContext

        public @NonNull CommandContext<@NonNull C> getCommandContext()
        Get the command context
        Returns:
        Command context
      • getCommand

        public @NonNull Command<@NonNull C> getCommand()
        Get the command instance
        Returns:
        Command instance
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object