com.cherokeesoft.db.utils.update.DefineCondition Maven / Gradle / Ivy
package com.cherokeesoft.db.utils.update;
import java.util.Set;
public class DefineCondition {
private final Set fieldsForUpdate;
public DefineCondition(MapSerialisable mapSerialisable) {
this(mapSerialisable.getRawMapRequest().keySet());
}
public DefineCondition(Set fieldsForUpdate) {
this.fieldsForUpdate = fieldsForUpdate;
}
public boolean defined(String name) {
return fieldsForUpdate.contains(name);
}
}