
com.taobao.tdhs.jdbc.util.ConvertUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tdhs-java-client Show documentation
Show all versions of tdhs-java-client Show documentation
A TDH_SOCKET Client For Java
/*
* Copyright(C) 2011-2012 Alibaba Group Holding Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Authors:
* wentong
*/
package com.taobao.tdhs.jdbc.util;
/**
* @author 文通
* @since 12-3-7 下午12:15
*/
public final class ConvertUtil {
public static int safeConvertInt(String v, int defaults) {
try {
return Integer.valueOf(v);
} catch (NumberFormatException e) {
return defaults;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy