1 17 package org.apache.servicemix.beanflow; 18 19 26 public interface State<T> { 27 28 31 public T get(); 32 33 36 public void set(T value); 37 38 41 public T getAndSet(T value); 42 43 47 public boolean compareAndSet(T expected, T newValue); 48 49 52 public void addRunnable(Runnable listener); 53 54 57 public void removeRunnable(Runnable listener); 58 59 62 public boolean is(T that); 63 64 67 public boolean isAny(T... values); 68 69 } 70 | Popular Tags |