class AbstractLocation implements Location {

    @Override
    public final boolean descendantOf(Location other) {
        Validate.notNull(other, "other must not be null");
        return this.getAncestorIds().contains(other.getId());
    }

}