All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.wicp.tams.common.callback.IValueEncoder Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
// Copyright 2007-2013 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package net.wicp.tams.common.callback;

/****
 * 对象与String互转
 * 
 * @author andy.zhou
 *
 * @param 
 *            对象的类
 */
public interface IValueEncoder {
	/***
	 * 对象转换成String,方法页面使用
	 * 
	 * @param value
	 *            对象
	 * @return 转换后的string
	 */
	String toClient(V value);

	/***
	 * String转换成对应的对象
	 * 
	 * @param clientValue
	 *            待转换后的string
	 * @return 转换后的对象
	 */
	V toValue(String clientValue);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy