add

fun add(solution: Solution): Solution?

Adds the solution to the sequence of solutions. If the capacity is met, then the oldest (first) item is evicted and returned

Return

a possibly evicted item

Parameters

solution

the solution to add