Skip to content

davepuchyr/samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Samples

  • A nice example of the adapter and visitor patterns applied to Google Web Toolkit (GWT). It obviates the standard chaining of instanceofs (see below) to which even googlers fall victim.
if ( o instanceof A ) {
   // cast to A and do stuff
} else if ( o instanceof B ) {
   // cast to B and do stuff
} else if ( o instanceof C ) {
...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published