Bookmark Topic Watch Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
An object whichs identity is based on its state rather than on object identity. Usually they are small objects which used quite widely, such as numbers, dates, monetary values etc.

Value objects always need to override the equals and hashCode methods. Often they are ImmutableObjects.

Unfortunately, early J2EE patterns also used this name for what is known as the DataTransferObject in the patterns community.

Other Resources:

  • Wiki:ValueObject
  • http://wiki.cs.uiuc.edu/cs497rej/Value+Object
  • http://www.martinfowler.com/eaaCatalog/valueObject.html
  • http://www.martinfowler.com/ap2/valueObject.html

  •  
    I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic