@Immutable public interface Decks
User
.@NotNull(message="deck can\'t be null") Deck get(String name) throws IOException
The method should throw a runtime exception if a deck
with this name doesn't exist. You should call add(String)
to create a deck first.
name
- The nameIOException
- If failsvoid add(String name) throws IOException
The method should throw a runtime exception if a deck with this name already exists.
name
- Unique nameIOException
- If failsvoid delete(String name) throws IOException
The method should throw a runtime exception if a deck with this name is absent.
name
- Unique nameIOException
- If fails@NotNull(message="iterable of decks can\'t be null") Iterable<Deck> iterate() throws IOException
IOException
- If failsCopyright © 2014–2015 Thindeck Inc.. All rights reserved.