Skip to content

ProgressBarBuilder()#setEtaFunction is pointless because all methods in ProgressState are package-private #147

Closed

Description

@natanfudge

setEtaFunction accepts a (BiFunction<ProgressState, Duration, Optional<Duration>>, but it's impossible to use ProgressState for consumers because everything there is package-private. setEtaFunction should either accept a Bifunction that provides objects that are actually usable, or ProgressState and its methods should become public.

Activity

  1. ctongfei commented on Oct 4, 2022

    @ctongfei
    Owner

    Thanks @natanfudge ! My fault, will have to make that class public.

  2. ctongfei commented on Oct 4, 2022

    @ctongfei
    Owner

    See #146: I think a better way is to change setETAFunction so that it accepts BiFunction<ProgressBar, Duration, Optional<Duration>>. Let me know if you have any objections.

  3. ctongfei commented on Oct 10, 2022

    @ctongfei
    Owner

    Fixed in 0.9.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions