Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Parameterize addListener by T #44

Open
gantonious opened this issue Jul 1, 2017 · 0 comments
Open

Parameterize addListener by T #44

gantonious opened this issue Jul 1, 2017 · 0 comments

Comments

@gantonious
Copy link
Owner

gantonious commented Jul 1, 2017

Change:

public ViewCellAdapter addListener(Object listener)
to public <T> ViewCellAdapter addListener(T listener)

This will allow users to pass in lambda expressions to addListener.

viewCellAdapter.<CustomListener>addListener(model -> {});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant