ritornello.core.conceitual
Interface Rollable

All Known Implementing Classes:
PitchName

public interface Rollable


Method Summary
 int getBack()
          Returns the last element.
 int getNext()
          Returns the next element.
 int goTo(int amount)
          Go to an sequencial position foward or back, given its amount of steps.
 

Method Detail

getNext

public int getNext()
Returns the next element.

Returns:
int

getBack

public int getBack()
Returns the last element.

Returns:
int

goTo

public int goTo(int amount)
Go to an sequencial position foward or back, given its amount of steps.

Parameters:
amount - - The amount of steps to go. May be positive (foward) or negative (back) (e.g. two steps foward has amount = +2).
Returns:
int