Created
September 29, 2023 18:20
-
-
Save centralhardware/442117b0788783231a72a23f1305ce49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private <T extends Handler> boolean processHandler(Update update, List<T> handlers){ | |
for (var handler : handlers) { | |
if (handler.isAcceptable(update)) { | |
handler.handle(update); | |
return true; | |
} | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment