@Test public void thePluginCanBeChanged() { final SystemProperty<Long> longProperty = SystemProperty.Builder.ofType(Long.class) .setKey("a-plugin-property") .setDefaultValue(42L) .setPlugin("TestPluginName") .setDynamic(false) .build(); assertThat(longProperty.getPlugin(), is("TestPluginName")); }
public String getPlugin() { return plugin; }
SystemProperty { public String getPlugin() { return plugin; } }
SystemProperty { public String getPlugin() { return plugin; } private  SystemProperty(final Builder<T> builder); }
SystemProperty { public String getPlugin() { return plugin; } private  SystemProperty(final Builder<T> builder); static Collection<SystemProperty> getProperties(); @SuppressWarnings("WeakerAccess") static void removePropertiesForPlugin(final String plugin); static Optional<SystemProperty> getProperty(final String key); @SuppressWarnings("unchecked") T getValue(); String getValueAsSaved(); String getDisplayValue(); boolean hasValueChanged(); String getDefaultDisplayValue(); void setValue(final T value); String getPlugin(); boolean isDynamic(); boolean isEncrypted(); boolean isRestartRequired(); void addListener(final Consumer<T> listener); void removeListener(final Consumer<T> listener); String getKey(); String getDescription(); T getDefaultValue(); }
SystemProperty { public String getPlugin() { return plugin; } private  SystemProperty(final Builder<T> builder); static Collection<SystemProperty> getProperties(); @SuppressWarnings("WeakerAccess") static void removePropertiesForPlugin(final String plugin); static Optional<SystemProperty> getProperty(final String key); @SuppressWarnings("unchecked") T getValue(); String getValueAsSaved(); String getDisplayValue(); boolean hasValueChanged(); String getDefaultDisplayValue(); void setValue(final T value); String getPlugin(); boolean isDynamic(); boolean isEncrypted(); boolean isRestartRequired(); void addListener(final Consumer<T> listener); void removeListener(final Consumer<T> listener); String getKey(); String getDescription(); T getDefaultValue();  }