BAEL-2755 - Introduction to the Null Object Pattern
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.baeldung.nullobject;
|
||||
|
||||
public class SmsRouter implements Router {
|
||||
|
||||
@Override
|
||||
public void route(Message msg) {
|
||||
System.out.println("Routing to a SMS gate. Msg: " + msg);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user