public abstract class StringMetric<T> extends Object implements Metric<T>
| Constructor and Description |
|---|
StringMetric() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
compareStringValues(Map<String,String> arguments)
alternate representation of the compare() method using only Map and
String values, to support XMLRPC-like interfaces
|
abstract String |
getName()
returns the name of this metric.
|
protected abstract T |
wrapStringArgument(String word)
construct a T instance from just a String to allow the
compareStringValues(Map) to interact with
Metric |
public abstract String getName()
compareStringValues(java.util.Map<java.lang.String, java.lang.String>) method.public Map<String,String> compareStringValues(Map<String,String> arguments)
arguments - a map of key-value pairs, where each key indicates the
intended use of the corresponding value. Must allow the
implementor to map these values into the data structures used
by .compare .protected abstract T wrapStringArgument(String word)
compareStringValues(Map) to interact with
Metric.compare word - the word to wrapCopyright © 2017. All rights reserved.