MCPcopy Create free account
hub / github.com/amikey/java-design-patterns / App

Class App

null-object/src/main/java/com/iluwatar/nullobject/App.java:14–32  ·  view source on GitHub ↗

Null Object pattern replaces null values with neutral objects. Many times this simplifies algorithms since no extra null checks are needed. In this example we build a binary tree where the nodes are either normal or Null Objects. No null values are used in the tree making the traversal easy.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected