U - type of the usersI - type of the itemspublic static interface RecommendationFormat.Writer<U,I> extends Closeable, Consumer<Recommendation<U,I>>
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(Recommendation<U,I> recommendation) |
void |
write(Recommendation<U,I> recommendation)
Writes the recommendation.
|
void write(Recommendation<U,I> recommendation) throws IOException
recommendation - to be writtenIOException - when IO errordefault void accept(Recommendation<U,I> recommendation)
accept in interface Consumer<Recommendation<U,I>>Copyright © 2016. All rights reserved.