Skip to content

Instantly share code, notes, and snippets.

@zfwf
Created January 16, 2017 20:55
Show Gist options
  • Save zfwf/dcb7a8f641fe5bbb9af59ef0c265ff05 to your computer and use it in GitHub Desktop.
Save zfwf/dcb7a8f641fe5bbb9af59ef0c265ff05 to your computer and use it in GitHub Desktop.
interface Immu { String getA() ; String getB ( ) }
Immu immu ( final String a , final String b )
{
/* validation of a and b */
return new Immu ( )
{
public String getA ( ) { return a ; }
public String getB ( ) { return b ; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment