Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Communicational cohesion example
public class DocsRepository {
public Doc findById(DocId id) {
//method's body
return doc;
}
public Doc save(Doc document) {
//method's body
return doc;
}
public Doc findByIdAndType(DocId id, DocType type) {
//method's body
return doc;
}
public List<Doc> findAll() {
//method's body
return docsList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment