blob: c3f5748c2e3ae12e2450e50cf1f1f8fc3f6a97b6 [file] [log] [blame]
/*
*******************************************************************************
* Copyright (C) 2009, Google, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.text;
/**
* Provide an interface for Transforms that focuses just on the transformation of the text.
* APIs that take Transliterator or StringTransform, but only depend on the transformation should use this interface in the API instead.
*
* @draft ICU 4.4
* @author markdavis
*
*/
public interface Transform<S,D> {
/**
* Transform the input in some way, to be determined by the subclass.
* @param source to be transformed (eg lowercased)
* @return result
* @stable ICU 3.8
*/
public D transform(S source);
}