nouritsu/src/main/java/nouritsu/types/ListWithRest.java

15 lines
403 B
Java
Raw Normal View History

2020-07-09 21:57:51 +02:00
package nouritsu.types;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.vavr.collection.HashSet;
import io.vavr.collection.Seq;
/**
* A sorted shopping list for a store.
* Rest contains the items that cant be purchased at the selected store.
*/
public record ListWithRest(
@JsonProperty("items") Seq<ShoppingItem> items,
@JsonProperty("rest") HashSet<ShoppingItem> rest
) {}