Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Future<Integer> #3

Open
marinagomes02 opened this issue May 23, 2022 · 2 comments
Open

Future<Integer> #3

marinagomes02 opened this issue May 23, 2022 · 2 comments
Assignees

Comments

@marinagomes02
Copy link

Boa tarde, em relação ao tipo Future que a função countPatternsFrom retorna, é suposto criar uma instância desse tipo, fazer override das funções da interface e retorná-lo ou há outra solução melhor?

Exemplo:

Future futureInteger = new Future() {
@OverRide
public boolean cancel(boolean may) { ... }
@OverRide
public Integer get(long timeout, TimeUnit unit)
(...)
};
return futureInteger;

@amadoandre
Copy link
Contributor

É suposto utilizar o Future do Java ( https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html) tens aqui alguns exemplos de como criar este tipo de objectos

@marinagomes02
Copy link
Author

Okok obrigada!

@amadoandre amadoandre self-assigned this May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants