StackOverflow Questions for Tag: static-factory

Basil Bourque
Basil Bourque

Reputation: 339472

How to hide constructor on a Java record that offers a public static factory method?

Score: 18

Views: 7744

Answers: 4

Read More
rahuLrajaN
rahuLrajaN

Reputation: 39

java static factory methods in Spring Model class

Score: 0

Views: 125

Answers: 2

Read More
alex
alex

Reputation: 95

Java interface that returns objects with its own type

Score: 1

Views: 103

Answers: 3

Read More
HLR
HLR

Reputation: 79

Why does JavaFX use “static” constructors?

Score: 4

Views: 131

Answers: 1

Read More
vipin
vipin

Reputation: 3

what is wrong in this static factory method code

Score: -1

Views: 209

Answers: 2

Read More
Manu Viswam
Manu Viswam

Reputation: 1646

static factory method in interface class java

Score: 14

Views: 22258

Answers: 5

Read More
Zack U
Zack U

Reputation: 11

Is it possible to generate a public default constructor as well as static factory method for an Immutables builder?

Score: 1

Views: 43

Answers: 0

Read More
klaushipp
klaushipp

Reputation: 75

How do I use static factory method in matlab package?

Score: 2

Views: 303

Answers: 2

Read More
Zakalwe
Zakalwe

Reputation: 1622

Good Use of a Static Factory

Score: 0

Views: 199

Answers: 0

Read More
Alok Dubey
Alok Dubey

Reputation: 419

JDK 11 Generics Issue when using Set.of

Score: 18

Views: 1445

Answers: 3

Read More
James
James

Reputation: 3184

Can I configure myBatis to create an instance of a class using the Builder Pattern?

Score: 10

Views: 2402

Answers: 1

Read More
moses.nebogipfel
moses.nebogipfel

Reputation: 61

Access to protected constructor from static factory method in base class

Score: 2

Views: 1031

Answers: 1

Read More
shrini1000
shrini1000

Reputation: 7236

Spring 3 @Component and static factory method

Score: 17

Views: 17265

Answers: 4

Read More
okariotis
okariotis

Reputation: 479

Can I Create a Subclass Instance Utilising a Factory-like Static Method of the Superclass?

Score: 3

Views: 484

Answers: 1

Read More
Keshav Raghav
Keshav Raghav

Reputation: 347

How to avoid branching while using a static factory pattern?

Score: 0

Views: 129

Answers: 1

Read More
Masoud
Masoud

Reputation: 8211

Managing statuses and validation rules using state and factory design patterns

Score: 3

Views: 2127

Answers: 1

Read More
Michael Holley
Michael Holley

Reputation: 148

Is it forbidden to use static methods in factory pattern?

Score: 1

Views: 1499

Answers: 3

Read More
rgb
rgb

Reputation: 1850

The proper usage of a static factory method for creating a DTO object with predefined values

Score: 0

Views: 5179

Answers: 1

Read More
nanocv
nanocv

Reputation: 2229

Static factory pattern with inheritance and type hints

Score: 0

Views: 544

Answers: 1

Read More
David B
David B

Reputation: 3581

Java Static Factory conversion

Score: 2

Views: 432

Answers: 2

Read More
PreviousPage 1Next