@Test public void testNewInstance() { final Context instance1 = EmptyContext.getInstance(); final Context instance2 = EmptyContext.getInstance(); assertNotNull(instance1); assertTrue(instance1 == instance2); }
public static Context getInstance() { return instance; }
EmptyContext implements Context { public static Context getInstance() { return instance; } }
EmptyContext implements Context { public static Context getInstance() { return instance; } EmptyContext(); }
EmptyContext implements Context { public static Context getInstance() { return instance; } 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 { public static Context getInstance() { return instance; } 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();  }