Interface Design by Bill Venners
Consider creating convenience implementations of your interfaces
Interface Design |
Contents |
Previous |
Next
Convenience Implementations
-
Guideline: Consider creating convenience implementations of your interfaces.
-
Convenience implementations can help make common things easy
-
MouseAdapter is a convenience implementation of MouseListener
Has empty mouseClicked(), mousePressed(), etc...
-
AbstractEntry is a convenience implementation of Entry
Has default implementations of equals(), hashCode(), and toString()