]> git.argeo.org Git - gpl/argeo-slc.git/blob - DataInterpreter.java
7a57b0552eda6b8687b677b2bfa15ad8fc385bc4
[gpl/argeo-slc.git] / DataInterpreter.java
1 package org.argeo.slc.diff;
2
3 /**
4 * Converts data into a format better adapted for comparison. It is typically
5 * used to convert <code>String</code> into typed format such as
6 * <code>BigDecimal</code>
7 */
8 public interface DataInterpreter {
9 /**
10 * Converts data
11 *
12 * @param key
13 * any object used to differentiate the type of data (e.g.
14 * column, path)
15 * @param value
16 * the data to convert
17 * @return the converted object
18 */
19 public Object convert(Object key, Object value);
20 }