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 NullRouter implements Router {
@Override
public void route(Message msg) {
// routing to /dev/null
}
}