import java.util.Map;
import java.util.Set;
import org.mxchange.jcore.BaseFrameworkSystem;
+import org.mxchange.jcore.criteria.logical.Logical;
/**
* A general criteria class
*/
private final Map<String, Object> criteria;
+ /**
+ * Logical matcher instance
+ */
+ private Logical logcial;
+
/**
* Protected default construtctor
*/
}
@Override
- public void addCriteria (final String key, final boolean value) {
+ public void addCriteria (final String key, final Boolean value) {
// Add to map
this.criteria.put(key, value);
}
- /**
- * Gets all values from underlaying map in an iterator.
- *
- * @return Values iteratable
- */
+ @Override
+ public void addCriteria (final String key, final String value) {
+ // Add to map
+ this.criteria.put(key, value);
+ }
+
+ @Override
+ public Set<Map.Entry<String, Object>> entrySet () {
+ return this.criteria.entrySet();
+ }
+
@Override
public Iterable<Object> values () {
// Call map's method
}
/**
- * Gets all entries as a key-value pair
- *
- * @return Key-value paira of all entries
+ * Getter for Logical matcher instance
+ *
+ * @return Logical matcher instance
+ */
+ protected final Logical getLogical () {
+ return this.logcial;
+ }
+
+ /**
+ * Setter for Logical instance
+ *
+ * @param logcial the Logical instance to set
*/
+ public final void setLogcial (final Logical logcial) {
+ this.logcial = logcial;
+ }
+
@Override
- public Set<Map.Entry<String, Object>> entrySet () {
- return this.criteria.entrySet();
+ public void addCriteria (final String key, final Number value) {
+ this.criteria.put(key, value);
}
}