Interface InputStrategy

All Known Implementing Classes:
AbstractInputStrategy, BindingInputStrategy

public interface InputStrategy
A strategy for processing input.
Author:
Garret Wilson
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    input(Input input)
    Processes input, returning whether the input was consumed.
  • Method Details

    • getParent

      InputStrategy getParent()
      Returns:
      The parent input strategy, or null if there is no parent input strategy.
    • input

      boolean input(Input input)
      Processes input, returning whether the input was consumed. If the input is not consumed by this input strategy, it is sent to the parent input strategy, if any, for processing.
      Parameters:
      input - The input to process.
      Returns:
      true if the input was consumed and should not be processed further.
      Throws:
      NullPointerException - if the given input is null.