@Test public void testSetQuietly() throws Exception { GameEventListener theListener = mock(GameEventListener.class); Property<String> theProperty = new Property<String>(String.class, this, "property", "value", theListener); assertEquals("value", theProperty.get()); theProperty.setQuietly("value1"); assertEquals("value1", theProperty.get()); verifyZeroInteractions(theListener); }
public void setQuietly(T aValue) { value = aValue; }
Property extends ReadOnlyProperty<T> { public void setQuietly(T aValue) { value = aValue; } }
Property extends ReadOnlyProperty<T> { public void setQuietly(T aValue) { value = aValue; } Property(Class<T> aType, Object aOwner, String aName, T aDefaultValue, GameEventListener<PropertyChanged> aListener);  Property(Class<T> aType, Object aOwner, String aName, GameEventListener<PropertyChanged> aListener);  Property(Class<T> aType, Object aOwner, String aName, T aDefaultValue); }
Property extends ReadOnlyProperty<T> { public void setQuietly(T aValue) { value = aValue; } Property(Class<T> aType, Object aOwner, String aName, T aDefaultValue, GameEventListener<PropertyChanged> aListener);  Property(Class<T> aType, Object aOwner, String aName, GameEventListener<PropertyChanged> aListener);  Property(Class<T> aType, Object aOwner, String aName, T aDefaultValue); void set(T aValue); void setQuietly(T aValue); long getLastChanged(); List<GameEventListener<PropertyChanged>> getChangeListener(); void addChangeListener(GameEventListener<PropertyChanged> aListener); void removeChangeListener(GameEventListener<PropertyChanged> aListener); }
Property extends ReadOnlyProperty<T> { public void setQuietly(T aValue) { value = aValue; } Property(Class<T> aType, Object aOwner, String aName, T aDefaultValue, GameEventListener<PropertyChanged> aListener);  Property(Class<T> aType, Object aOwner, String aName, GameEventListener<PropertyChanged> aListener);  Property(Class<T> aType, Object aOwner, String aName, T aDefaultValue); void set(T aValue); void setQuietly(T aValue); long getLastChanged(); List<GameEventListener<PropertyChanged>> getChangeListener(); void addChangeListener(GameEventListener<PropertyChanged> aListener); void removeChangeListener(GameEventListener<PropertyChanged> aListener);  }