1/* 2 ******************************************************************************** 3 * Copyright (C) 2009-2010, Google, International Business Machines Corporation * 4 * and others. All Rights Reserved. * 5 ******************************************************************************** 6 */ 7package com.ibm.icu.text; 8 9/** 10 * Provide an interface for Transforms that focuses just on the transformation of the text. 11 * APIs that take Transliterator or StringTransform, but only depend on the transformation should use this interface in the API instead. 12 * 13 * @author markdavis 14 * @stable ICU 4.4 15 16 */ 17 18public interface Transform<S,D> { 19 /** 20 * Transform the input in some way, to be determined by the subclass. 21 * @param source to be transformed (eg lowercased) 22 * @return result 23 * @stable ICU 4.4 24 */ 25 public D transform(S source); 26} 27