hasan's blog (বল্গ)

work for fun!!!

Archive for January 2008

builder pattern with fluent interface just an example while i was doing by routine work :)

without comments

today while i was working with one of my projects, i was wondering how this came up with a bit more fluent with my credential object.
just i can’t resists myself to share this code with every one.

assertNotNull(mProfileManager.authenticate(
Credential.Builder
.aNew().userName(userName).password(password).build()));

Written by nhm tanveer hossain khan

January 26, 2008 at 1:53 pm

Posted in Introduction, Java, code fun