Class GraphNameValidationService


  • public class GraphNameValidationService
    extends java.lang.Object
    I'm not loving this tiny service; but I am loving it more than a static method on an unrelated class.

    GraphName ought to be a micro type. That would strengthen our domain model. And we could then create a guard, where it could only get constructed in a known good state - i.e. not blank.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensureIsNotBlank​(java.lang.String graphName)  
      • Methods inherited from class java.lang.Object

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

      • GraphNameValidationService

        public GraphNameValidationService()
    • Method Detail

      • ensureIsNotBlank

        public void ensureIsNotBlank​(java.lang.String graphName)