@Test public void shouldReturnFalseIfLevelIsNotRoot() throws Exception { GeographicLevel someLevel = new GeographicLevel(123L, "some level", "some level", 2); assertFalse(someLevel.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);  }