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