JavaProgrammingConcepts
Method Chaining[edit]
This style is more popular in Smalltalk. The called method returns the called object, so it the next method can be called directly. Example:
new Configuration().configure().buildSessionFactory();
This style is more popular in Smalltalk. The called method returns the called object, so it the next method can be called directly. Example:
new Configuration().configure().buildSessionFactory();