Package org.neo4j.gds.core.loading
Class GraphNameValidationService
- java.lang.Object
-
- org.neo4j.gds.core.loading.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.
-
-
Constructor Summary
Constructors Constructor Description GraphNameValidationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ensureIsNotBlank(java.lang.String graphName)
-