@Test public void testHasName() { NameOrCrn nameOrCrn = NameOrCrn.ofName(NAME); assertTrue(nameOrCrn.hasName()); }
public boolean hasName() { return isNotEmpty(name); }
NameOrCrn { public boolean hasName() { return isNotEmpty(name); } }
NameOrCrn { public boolean hasName() { return isNotEmpty(name); } private  NameOrCrn(String name, String crn); }
NameOrCrn { public boolean hasName() { return isNotEmpty(name); } private  NameOrCrn(String name, String crn); static NameOrCrn ofName(String name); static NameOrCrn ofCrn(String crn); static NameOrCrn empty(); String getName(); String getCrn(); boolean hasName(); boolean hasCrn(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
NameOrCrn { public boolean hasName() { return isNotEmpty(name); } private  NameOrCrn(String name, String crn); static NameOrCrn ofName(String name); static NameOrCrn ofCrn(String crn); static NameOrCrn empty(); String getName(); String getCrn(); boolean hasName(); boolean hasCrn(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }