@Test public void get() { final IDependencyObject<String> depOne = new StaticDependencyObject<>("Static"); Assert.assertEquals("Static", depOne.get(new DummyInjectionTarget())); }
@Nullable @Override public T get(@Nullable final Object context) { this.hasChanged = false; return value; }
StaticDependencyObject implements IDependencyObject<T> { @Nullable @Override public T get(@Nullable final Object context) { this.hasChanged = false; return value; } }
StaticDependencyObject implements IDependencyObject<T> { @Nullable @Override public T get(@Nullable final Object context) { this.hasChanged = false; return value; } StaticDependencyObject(@Nullable final T value); }
StaticDependencyObject implements IDependencyObject<T> { @Nullable @Override public T get(@Nullable final Object context) { this.hasChanged = false; return value; } StaticDependencyObject(@Nullable final T value); @Nullable @Override T get(@Nullable final Object context); @Override void set(@Nullable final Object context, @Nullable final T value); @Override boolean hasChanged(@Nullable final Object context); }
StaticDependencyObject implements IDependencyObject<T> { @Nullable @Override public T get(@Nullable final Object context) { this.hasChanged = false; return value; } StaticDependencyObject(@Nullable final T value); @Nullable @Override T get(@Nullable final Object context); @Override void set(@Nullable final Object context, @Nullable final T value); @Override boolean hasChanged(@Nullable final Object context);  }