Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PECS #596

Open
GraceYongXM opened this issue Apr 27, 2022 · 5 comments
Open

PECS #596

GraceYongXM opened this issue Apr 27, 2022 · 5 comments
Labels
📚 Lecture 08 Queries with regards to Lecture 08

Comments

@GraceYongXM
Copy link

Description

i kinda understand Producer Extends Consumer Super

but who actually are Producers and Consumers? and for Consumers i assume its Supplier?
would appreciate any explanations and examples!!

Topic:

PECS

Screenshots

Screenshots (if any)

@GraceYongXM GraceYongXM added the 📚 Lecture 08 Queries with regards to Lecture 08 label Apr 27, 2022
@joannelxl
Copy link

joannelxl commented Apr 27, 2022

hi grace, I think there's some examples in this thread: #508

@GraceYongXM
Copy link
Author

thanks joannelxl for redirecting! it's really helpful :)

@ghost
Copy link

ghost commented Apr 27, 2022

hello, Supplier is actually a producer. like the name suggests, it supplies something and doesn't take in anything from the client. therefore it will be Supplier<? extends T>.

@shotnothing
Copy link

image

@e0415501
Copy link

Thanks @shotnothing that's really useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 Lecture 08 Queries with regards to Lecture 08
Projects
None yet
Development

No branches or pull requests

4 participants