@Test public void shouldReturnTrueIfLevelIsRoot() throws Exception { GeographicLevel root = new GeographicLevel(123L, "root", "root", 1); assertTrue(root.isRootLevel()); }
@JsonIgnore public boolean isRootLevel() { return this.levelNumber.equals(ROOT_LEVEL_NUMBER); }
GeographicLevel extends BaseModel implements Importable { @JsonIgnore public boolean isRootLevel() { return this.levelNumber.equals(ROOT_LEVEL_NUMBER); } }
GeographicLevel extends BaseModel implements Importable { @JsonIgnore public boolean isRootLevel() { return this.levelNumber.equals(ROOT_LEVEL_NUMBER); } GeographicLevel(Long id, String code, String name, Integer levelNumber);  GeographicLevel(Long id); }
GeographicLevel extends BaseModel implements Importable { @JsonIgnore public boolean isRootLevel() { return this.levelNumber.equals(ROOT_LEVEL_NUMBER); } GeographicLevel(Long id, String code, String name, Integer levelNumber);  GeographicLevel(Long id); @JsonIgnore boolean isRootLevel(); @JsonIgnore boolean isLowerInHierarchyThan(GeographicLevel level); }
GeographicLevel extends BaseModel implements Importable { @JsonIgnore public boolean isRootLevel() { return this.levelNumber.equals(ROOT_LEVEL_NUMBER); } GeographicLevel(Long id, String code, String name, Integer levelNumber);  GeographicLevel(Long id); @JsonIgnore boolean isRootLevel(); @JsonIgnore boolean isLowerInHierarchyThan(GeographicLevel level);  }