class VehicleRepositoryImpl implements VehicleRepository {

    @Override
    public List<Vehicle> vehicles() {
        return StreamSupport.stream(repository.findAll().spliterator(), false)
                .map(VehicleRepositoryImpl::toDomain)
                .collect(toList());
    }

    public  VehicleRepositoryImpl(VehicleCrudRepository repository);

}