Skip to content

Instantly share code, notes, and snippets.

@stolarczykt
Created January 27, 2020 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stolarczykt/222b1be7e8afdffdfc3127afaecf49bb to your computer and use it in GitHub Desktop.
Save stolarczykt/222b1be7e8afdffdfc3127afaecf49bb to your computer and use it in GitHub Desktop.
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