Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- This is a stateless utility class
- that groups useful foo-related operations, often with side effects.
- */
- public class FooUtil {
- public int foo(...) {...}
- public void bar(...) {...}
- }
- /**
- This class does applied foo-related things.
- */
- class FooSomething {
- int DoBusinessWithFoo(FooUtil fooUtil, ...) {
- if (fooUtil.foo(...)) fooUtil.bar(...);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement