Summary
←Older revision | Revision as of 07:55, 13 June 2016 | ||
Line 82: | Line 82: | ||
== Summary == | == Summary == | ||
- | By giving the [[builder]] a generic error type we allow fine grain control over possible errors states that may accumulate when calling various [[builder]] configuration methods. The whole solution keeps the runtime behavior of the [[builder]] pattern - after applying [[erasure]] of generic types, the whole type information (visible to compiler and [[API] user) disappears. | + | By giving the [[builder]] a generic error type we allow fine grain control over possible errors states that may accumulate when calling various [[builder]] configuration methods. The whole solution keeps the runtime behavior of the [[builder]] pattern - after applying [[erasure]] of generic types, the whole type information (visible to compiler and [[API]] user) disappears. |