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)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkIfReady​(@Nullable javax.swing.JComponent component)  
      T get()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
    • Method Detail

      • checkIfReady

        public boolean checkIfReady​(@Nullable
                                    @Nullable javax.swing.JComponent component)
        Specified by:
        checkIfReady in interface UIFuture<T>
      • get

        public T get()
        Specified by:
        get in interface UIFuture<T>