Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IOE - IOException
- CDE - CorruptDataException
- IAE - IllegalArgumentException
- INRE - IllegalNumberRangeException
- write(o)
- initialize (load from provider using parser)
- readonly
- -> IOE
- next free slot >= capacity
- -> IOE
- corrupt
- -> CDE (null, "message.");
- o is null
- ->
- IAE
- writeToFreeSlot
- read(i)
- initialize
- index < 0 OR
- index >= capacity
- -> INRE
- i >= next free slot
- -> IOE
- corrupt
- -> CDE (null data, message)
- null at index i
- -> IOE
- return item at index i
Advertisement
Add Comment
Please, Sign In to add comment