@Test public void testGet() { final Context instance = EmptyContext.getInstance(); final Key<String> key = Key.of(randomUUID().toString(), String.class); final String value = instance.get(key); assertNull(value); }
@Override public <T> T get(final Key<T> key) { assertNotNull(key, "Key must not null"); return null; }
EmptyContext implements Context { @Override public <T> T get(final Key<T> key) { assertNotNull(key, "Key must not null"); return null; } }
EmptyContext implements Context { @Override public <T> T get(final Key<T> key) { assertNotNull(key, "Key must not null"); return null; } EmptyContext(); }
EmptyContext implements Context { @Override public <T> T get(final Key<T> key) { assertNotNull(key, "Key must not null"); return null; } EmptyContext(); static Context getInstance(); @Override Context withValue(final Key<T> key, final T value); @Override T get(final Key<T> key); @Override T getOrDefault(final Key<T> key, final T defaultValue); @Override Context withScope(final String scope); @Override String getScope(); }
EmptyContext implements Context { @Override public <T> T get(final Key<T> key) { assertNotNull(key, "Key must not null"); return null; } EmptyContext(); static Context getInstance(); @Override Context withValue(final Key<T> key, final T value); @Override T get(final Key<T> key); @Override T getOrDefault(final Key<T> key, final T defaultValue); @Override Context withScope(final String scope); @Override String getScope();  }