]> git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.support/src/org/argeo/slc/diff/DataInterpreter.java
Adapt to changes in Argeo Commons
[gpl/argeo-slc.git] / legacy / org.argeo.slc.support / src / org / argeo / slc / diff / 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 }