Class SwingUIFuture<T>

  • All Implemented Interfaces:
    UIFuture<T>

    public final class SwingUIFuture<T>
    extends java.lang.Object
    implements UIFuture<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private @NotNull java.util.concurrent.atomic.AtomicReference<javax.swing.SwingWorker<java.lang.Void,​java.lang.Void>> swingWorker  
      private T value  
    • Constructor Summary

      Constructors 
      Constructor Description
      SwingUIFuture​(@NotNull java.util.function.Supplier<T> supplier)  
    • Field Detail

      • swingWorker

        @NotNull
        private final @NotNull java.util.concurrent.atomic.AtomicReference<javax.swing.SwingWorker<java.lang.Void,​java.lang.Void>> swingWorker
      • value

        @Nullable
        private T value
    • Constructor Detail

      • SwingUIFuture

        public SwingUIFuture​(@NotNull
                             @NotNull java.util.function.Supplier<T> supplier)