Skip to content
/ value Public

Generic value access including ObservableValue and Binding

License

Notifications You must be signed in to change notification settings

m-m-m/value

Repository files navigation

logo

Apache License, Version 2.0 Build Status

mmm-value

Maven Central base JavaDoc

The module io.github.mmm.value (artifactId mmm-value) provides a minimal but powerful API for value containers.

Usage

Maven Dependency:

<dependency>
  <groupId>io.github.m-m-m</groupId>
  <artifactId>mmm-value</artifactId>
  <!-- <version>${mmmVersion}</version> -->
</dependency>

Gradle Dependency:

implementation 'io.github.m-m-m:mmm-value:${mmmVersion}'

For ${mmmVersion} please fill in the latest version that you can find in the badge above.

Module Dependency:

  requires transitive io.github.mmm.value;

mmm-value-observable

Maven Central base JavaDoc

The module io.github.mmm.value.observable (artifactId mmm-value-observable) provides observable values that allow to add and remove listeners to observe the value and get notified about changes. All is inspired by ObservableValue from JavaFx.

Usage

Maven Dependency:

<dependency>
  <groupId>io.github.m-m-m</groupId>
  <artifactId>mmm-value-observable</artifactId>
  <!-- <version>${mmmVersion}</version> -->
</dependency>

Gradle Dependency:

implementation 'io.github.m-m-m:mmm-value-observable:${mmmVersion}'

For ${mmmVersion} please fill in the latest version that you can find in the badge above.

Module Dependency:

  requires transitive io.github.mmm.value.observable;

Example

StringExpression observableString = createStringExpression();
observableString.addListener(e -> System.out.print(e.getOldValue() + "-->" + e.getValue()));
observableString.set("John Doe");

About

Generic value access including ObservableValue and Binding

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages