StackOverflow Questions for Tag: pecs

fge
fge

Reputation: 121790

Java, generics and PECS: still having trouble understanding the C part; concrete example?

Score: 1

Views: 595

Answers: 4

Read More
peakit
peakit

Reputation: 29369

What is PECS (Producer Extends Consumer Super)?

Score: 918

Views: 177724

Answers: 17

Read More
mtw
mtw

Reputation: 144

Parametrize generic list whilst filtering and mapping

Score: 0

Views: 55

Answers: 1

Read More
meijuh
meijuh

Reputation: 1077

Java possibly requiring unnecessary extends keyword in PECS construction

Score: 1

Views: 59

Answers: 1

Read More
Talktomegoose
Talktomegoose

Reputation: 123

How to pass multiple Types that implement the same interface?

Score: 1

Views: 547

Answers: 1

Read More
cxs1031
cxs1031

Reputation: 170

Why Comparable and Comparator are consumers in PECS wildcard types in Java

Score: 4

Views: 518

Answers: 3

Read More
Nishant Lakhara
Nishant Lakhara

Reputation: 2455

How was it decided that Predicate "and" method would have a consumer and not producer in java?

Score: 2

Views: 732

Answers: 3

Read More
user4811324
user4811324

Reputation:

Wildcard vs TypeParameter

Score: -1

Views: 99

Answers: 1

Read More
faceoff
faceoff

Reputation: 191

Kotlin and Java PECS

Score: 0

Views: 378

Answers: 2

Read More
Manish
Manish

Reputation: 1517

Generics: LowerBounded wildcard vs UpperBounded wildcard

Score: 0

Views: 67

Answers: 1

Read More
Ray Jasson
Ray Jasson

Reputation: 471

Types of argument to be passed to <? super T> in Java

Score: 2

Views: 1209

Answers: 1

Read More
Sweden
Sweden

Reputation: 1

How to give default value for a optional with generic type in JAVA

Score: 0

Views: 1239

Answers: 1

Read More
roookeee
roookeee

Reputation: 1818

When to use PECS when designing a library?

Score: 0

Views: 179

Answers: 1

Read More
KyelJmD
KyelJmD

Reputation: 4732

Java generics PECS

Score: 4

Views: 1397

Answers: 3

Read More
Mario Ishac
Mario Ishac

Reputation: 5907

How to allow a consumer of more precise type to be passed in as a consumer of a less precise type?

Score: 1

Views: 73

Answers: 2

Read More
Georgian Benetatos
Georgian Benetatos

Reputation: 728

Java preserve generic type in map of wildcard upper bound

Score: 1

Views: 405

Answers: 1

Read More
Jin Kwon
Jin Kwon

Reputation: 22017

How can I type for Collection<? super Some>?

Score: 0

Views: 49

Answers: 1

Read More
Nicolas Zozol
Nicolas Zozol

Reputation: 7048

PECS: How to convert a Consumer to a Producer?

Score: 1

Views: 105

Answers: 2

Read More
ElectronWill
ElectronWill

Reputation: 823

Compilation fails when upper bound wildcard is used with a lower one

Score: 3

Views: 118

Answers: 0

Read More
ruslangm
ruslangm

Reputation: 703

PECS parametrized class

Score: 0

Views: 73

Answers: 0

Read More
PreviousPage 1Next