org.neogroup.warp.data.query.traits.HasFields Maven / Gradle / Ivy
package org.neogroup.warp.data.query.traits;
import java.util.Map;
public interface HasFields {
Map getFields();
R setFields (Map fields);
default R set (String field, Object value) {
getFields().put(field, value);
return (R)this;
}
default V get (String field) {
return (V)getFields().get(field);
}
default R clearFields () {
getFields().clear();
return (R)this;
}
}