title: One shot ChangeListener in JavaFX
body: <p>Is there any way to make a listener fire once and remove itself?</p>
  
  <pre><code>    for(Spec spec : specs){
          spec.myProperty().addListener((obs,ov,nv) -&gt; {
              if (nv.longValue() &gt; 0){
                  //do whatever
                  spec.myProperty().removeListener(this);
              }  
          });
      }
  </code></pre>
  
  <p>That code won't work.  I can only think of complicated solutions to this seemingly simple problem.</p>