2 ********************************************************************************
3 * Copyright (C) 2009-2010, Google, International Business Machines Corporation *
4 * and others. All Rights Reserved. *
5 ********************************************************************************
7 package com.ibm.icu.text;
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.
18 public interface Transform<S,D> {
20 * Transform the input in some way, to be determined by the subclass.
21 * @param source to be transformed (eg lowercased)
25 public D transform(S source);