Skip to content

Andy Gibson

Open Source Projects & Technical Writings

  • About
  • Projects
    • Knappsack Archetypes
    • Take control of your data with DataValve
  • Contact Me

Tag: Immutability

Modifying Immutable Objects with Chained Methods

Andy Gibson Articles

When you are coding with immutable objects, there are many times where you not only need to initially define them but may want to create derivative versions of an existing instance. You might want to consider using chained methods to make your code more concise or to take advantage of default or optional parameters.

Continue Reading...

Immutability Through Interfaces

Andy Gibson Programming 2 Comments on Immutability Through Interfaces

It is often desirable to have immutable objects, objects that cannot be modified once constructed. Typically, an immutable object has fields that are declared as final and are set in the object constructor. There are getters for the fields, but no setters since the values cannot be saved. Once created, the object state doesn’t change […]

Continue Reading...

About

Personal Photo
Location : Manchester, UK
Contact Me

I've been developing software for over 20 years, mostly in Java. This site is a home for my open source projects, writings, articles and tutorials mainly focusing on Java and Java EE from a real world perspective.

twitter rss LinkedIn

Tags

Apprentice Archetypes Arquillian Articles Beginner Blog CDI Conversation Cpp DataValve Delphi Design Eclipse EJB Facelets Food Frameworks Games Geek Glassfish Graphics Java Java EE JBoss JEE Journeyman JPA JSF JTexgen Knappsack Maven Microsoft Modeling Movies Netbeans Open Source Personal Podcast Programming Project Kenai Seam Spigot Spring Weld Wicket

Recent Posts

  • Creating a simple OSGI Bundle By Hand
  • Inherited Jackson Serializers
  • Introduction to Jackson Serializers
  • Why C++ ?
  • Simple C++ Project Setup With CMake
  • Procedural Terrain Update
  • Procedural Terrain With Java – part 2
  • Procedural Terrain With Java – part 1
  • New Look Java Magazine
  • Optionals

Archives

  • Facebook
  • Twitter
  • Instagram
  • Linkedin

Proudly powered by WordPress | Theme: blog-bank by wpthemespace.com