Interface SpinnerModel<T>

Type Parameters:
T - the object that this model returns.

public interface SpinnerModel<T>
A data model for use with objects that increment or decrement a standing value.
Author:
Matthew Tropiano
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    void
    setValue(T value)
    Sets the currently selected value.
  • Method Details

    • getValue

      T getValue()
      Returns:
      the currently selected value.
    • setValue

      void setValue(T value)
      Sets the currently selected value.
      Parameters:
      value - the new value for this model.
    • getNext

      T getNext()
      Returns:
      the next value after the value that would be returned by getValue().
    • getPrevious

      T getPrevious()
      Returns:
      the previous value using what would be returned by #getValue().