BAEL-2755 - Introduction to the Null Object Pattern

This commit is contained in:
Krzysiek
2019-03-02 19:58:07 +01:00
parent 3cbd70a6e1
commit 3deeefe910
7 changed files with 114 additions and 0 deletions

View File

@@ -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);
}
}