
wee0.config.IModifyConfig Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2016-2022, wee0.com.
*
* 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 wee0.config;
/**
* 可修改的键值配置对象规范接口。
* @author baihw
* @date 2018年3月25日
**/
/**
*
* examples:
*
**/
public interface IModifyConfig extends IConfig{
/**
* 设置键值数据。
*
* @param key 键名
* @param val 键值
* @return 当前对象,便于链式操作。
*/
IModifyConfig set( String key, String val );
/**
* 设置键值数据。
*
* @param key 键名
* @param val 键值
* @return 当前对象,便于链式操作。
*/
IModifyConfig set( String key, Number val );
/**
* 设置键值数据。
*
* @param key 键名
* @param val 键值
* @return 当前对象,便于链式操作。
*/
IModifyConfig set( String key, Boolean val );
/**
* 设置键值数据。
*
* @param key 键名
* @param val 键值
* @return 当前对象,便于链式操作。
*/
IModifyConfig set( String key, IConfig val );
/**
* 设置键值数据。
*
* @param key 键名
* @param val 键值
* @return 当前对象,便于链式操作。
*/
IModifyConfig set( String key, IConfigList val );
/**
* 移除指定键名数据
* @param keys 键名列表
* @return 当前对象,便于链式操作。
*/
IModifyConfig remove( String... keys );
/**
* 清空数据
*
* @return 当前对象,便于链式操作。
*/
IModifyConfig clear();
} // end class
© 2015 - 2025 Weber Informatics LLC | Privacy Policy