Created
January 27, 2020 10:32
-
-
Save stolarczykt/222b1be7e8afdffdfc3127afaecf49bb to your computer and use it in GitHub Desktop.
Communicational cohesion example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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