Top "Builder" questions

An object creation software design pattern, one of the Gang of Four's creational design patterns.

Dialog throwing "Unable to add window — token null is not for an application” with getApplication() as context

My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if …

android android-alertdialog android-context builder
When would you use the Builder Pattern?

What are some common, real world examples of using the Builder Pattern? What does it buy you? Why not just …

java design-patterns builder
How to get distinct values for non-key column fields in Laravel?

This might be quite easy but have no idea how to. I have a table that can have repeated values …

laravel eloquent builder
Android AlertDialog Single Button

I'd like to have an AlertDialog builder that only has one button that says OK or Done or something, instead …

android button builder android-alertdialog
How to access attributes using Nokogiri

I have a simple task of accessing the values of some attributes. This is a simple script that uses Nokogiri::…

ruby nokogiri builder
How to open the keyboard automatically on UITextField?

I have a very simple table and when tocuh a cell it opens a new view with one UITextfield. All …

iphone objective-c interface uitextfield builder
How to use Lombok @Builder annotation on Methods

I want to have an easy way to construct test data and have found the Builder pattern to be a …

java builder lombok
How to populate a TableView that is defined in an fxml file that is designed in JavaFx Scene Builder

I would like to know how do I populate a TableView with data... All the examples I have seen creates …

tableview javafx-2 builder populate scene
How to exclude property from Lombok builder?

I have a class called as "XYZClientWrapper" , which have following structure: @Builder XYZClientWrapper{ String name; String domain; XYZClient client; } What …

java builder lombok
symfony2 form querybuilder with parameters

I want to put my entity in the function of the query builder: ->add( 'weeks', 'entity', array( 'class' =&…

forms symfony builder query-builder