Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. /**
  2. This is a stateless utility class
  3. that groups useful foo-related operations, often with side effects.
  4. */
  5. public class FooUtil {
  6. public int foo(...) {...}
  7. public void bar(...) {...}
  8. }
  9.  
  10. /**
  11. This class does applied foo-related things.
  12. */
  13. class FooSomething {
  14. int DoBusinessWithFoo(FooUtil fooUtil, ...) {
  15. if (fooUtil.foo(...)) fooUtil.bar(...);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement