I would make the type parameter V bounded and enforce that the object is serializable: `V extends Serializable`. Also add serialVersionUID - IntelliJ can generate this for you