Posts Tagged design patterns

Iterator Design Pattern

Iterator Pattern is a Behavioural Design Pattern. The intent of Interator pattern is to provide a way to sequentially taverse over a data structure without exposing underlying data structure. Java’s Iterator is a good implementation of this pattern and allows us to traverse over underlying collection in a sequential way. A collection creates an Iterator […]

, ,

Leave a comment

Builder Design Pattern

Builder Design pattern is a creational pattern. It is used to build a complex object step-by-step and final step would return complete constructed object. Builder pattern gives us more control over construction of object and makes client code more readable. It helps us eleminate problems like Telescoping Constructors and setter methods. You may also create […]

, , ,

Leave a comment