Skip to content

Instantly share code, notes, and snippets.

@stolarczykt
Created January 27, 2020 10:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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