Tag Info

Hot answers tagged


Is it the builder pattern? As Euphoric explained, no, it is not. A Builder is a separate class which has the purpose to create an instance of a different class. Is there anything wrong with the design? That depends. Does your application allow buttons which don't have a text and/or icon? If yes, then this pattern is perfectly acceptable. If no, you might ...


The core part of Builder patter is the build part, not the fluent syntax part. If your class is not building another class, then it shouldn't be called builder. In your case, I would call it "fluent property setting" or something similar.

Only top voted, non community-wiki answers of a minimum length are eligible