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