Skip to content

Instantly share code, notes, and snippets.

@ennerf
Last active May 28, 2022 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ennerf/5ae6cfcb336a3839bf5e47f94f7c6995 to your computer and use it in GitHub Desktop.
Save ennerf/5ae6cfcb336a3839bf5e47f94f7c6995 to your computer and use it in GitHub Desktop.
Properties with persistence
/**
* Properties with added persistence between runs. Generated accessors are omitted.
*/
public class UiConfig extends PersistentProperties {
private final BooleanProperty debugEnabled = getBoolean("ENABLE_DEBUG", true);
private final StringProperty unitLabel = getString("SELECTED_UNITS", "mm");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment