PolyBooks/sdp_polyBooks

View on GitHub
app/src/main/java/com/github/polybooks/database/Query.kt

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package com.github.polybooks.database

import java.util.concurrent.CompletableFuture

/**
 * Queries are Object that allow to make queries to a database.
 * */
interface Query<T> {

    /**
     * Execute the query and return all the results in a Future.
     * */
    fun getAll() : CompletableFuture<List<T>>

}