Package dev.zemco.codegame.execution.io
Interface IInputSource
- All Known Implementing Classes:
IterableInputSource
public interface IInputSource
Source of input values during execution.
- Author:
- Erik Zemčík
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns next value of the input source.booleanReturns true if input source has more values.
-
Method Details
-
hasNextValue
boolean hasNextValue()Returns true if input source has more values.- Returns:
- true if input source has more values else false
-
getNextValue
int getNextValue()Returns next value of the input source.- Returns:
- next value of the input source
- Throws:
NoSuchElementException- if it has no next value
-