BAEL-2755 - Introduction to the Null Object Pattern
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.baeldung.nullobject;
|
||||
|
||||
public class NullRouter implements Router {
|
||||
|
||||
@Override
|
||||
public void route(Message msg) {
|
||||
// routing to /dev/null
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user