ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ImmutableLiveString.java 587B

12345678910111213141516171819202122
  1. package live;
  2. import listeners.DummyListenerHandle;
  3. import listeners.ListenerHandle;
  4. import zsynthetic.FunctionStringStringToVoid;
  5. public final class ImmutableLiveString implements LiveString {
  6. public final String value;
  7. public ImmutableLiveString(String value) {
  8. this.value = value;
  9. }
  10. @Override
  11. public ListenerHandle<FunctionStringStringToVoid> addListener(FunctionStringStringToVoid listener) {
  12. return new DummyListenerHandle<FunctionStringStringToVoid>(listener);
  13. }
  14. public String getValue() {
  15. return value;
  16. }
  17. }