All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neogroup.warp.data.query.traits.HasFields Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy