Download directly

In our third Fragment installment, we introduce Josh’s second Item: Consider a builder when faced with many constructor parameters.

Stay tuned for more items from our “Effective Java for Android developers” Fragment series.

Show Notes

Consider a builder when faced with many constructor parameters

Telescoping Constructor Pattern

JavaBeans Pattern

Builder pattern

Example usage from Android source:

Tip:

Contact us: