Class ShowOptions

java.lang.Object
com.ultikits.ultitools.ui.ShowOptions

public final class ShowOptions extends Object
Options for one show. Immutable.
  • Field Details

    • DEFAULTS

      private static final ShowOptions DEFAULTS
    • timeout

      @Nullable private final @Nullable Duration timeout
    • noTimeout

      private final boolean noTimeout
  • Constructor Details

  • Method Details

    • defaults

      public static ShowOptions defaults()
      Intent-dependent defaults: 10 minutes for Notice, Confirm, Form and Choice; none for Grid. Detectable game interruptions end Dialogs with CloseReason.INTERRUPTED; other interruptions still need this timeout. Select a suitable explicit timeout for long-lived Dialogs.
    • builder

      public static ShowOptions.Builder builder()
      Starts with intent-dependent defaults.
    • timeout

      public Optional<Duration> timeout()
      Empty means the intent's default.
    • noTimeout

      public boolean noTimeout()
      Whether no timeout applies at all (only honoured for Grid).
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object