Class FXUtils.RunnableWithReturn<R>

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    FXUtils

    private static class FXUtils.RunnableWithReturn<R>
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Supplier<R> internalRunnable  
      private java.lang.Object lock  
      private R returnValue  
    • Constructor Summary

      Constructors 
      Constructor Description
      RunnableWithReturn​(java.util.function.Supplier<R> run)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R getReturnValue()  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • internalRunnable

        private final java.util.function.Supplier<R> internalRunnable
      • lock

        private final java.lang.Object lock
      • returnValue

        private R returnValue
    • Constructor Detail

      • RunnableWithReturn

        public RunnableWithReturn​(java.util.function.Supplier<R> run)
    • Method Detail

      • getReturnValue

        public R getReturnValue()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable