«« Next » « Previous
«« Next » « Previous

Link Details

1% of the members rule this place. Be one of them! Login and vote now.
Link 78053 thumbnail

By bloid
via stephan.reposita.org
Published: Apr 29 2008 / 06:59

Immutable objects help with avoiding bugs. Suppose I have two interfaces implementing the Immutable Interface pattern. One interface for Point and one with MutablePoint. The pattern suggests a cast to ImmutablePoint p; ((Point)p).setX( 1.0 ); get the mutable interface. This isn’t safe and can be replaced with a Generics solution.
  • 7
  • 0
  • 881
  • 300

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)