Interface ValueObject

  • All Implemented Interfaces:

    
    public interface ValueObject
    
                        

    Marker interface for DDD Value Objects (domain primitives) - see e.g. https://en.wikipedia.org/wiki/Value_object. A ValueObject <i>must</i> be final, pre-validated (before or during construction) and immutable.

    <p> Some articles with more in-depth explanation of value objects and their importance in software design:<br> <ul> <li>https://freecontent.manning.com/domain-primitives-what-they-are-and-how-you-can-use-them-to-make-more-secure-software/</li> <li>https://medium.com/@edin.sahbaz/the-pitfalls-of-primitive-obsession-an-insight-into-code-quality-using-net-c-b1898bcffb4d</li> </ul>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail