Back to project page xing-android-sdk.
The source code is released under:
Apache License
If you think the Android project xing-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.hdodenhof.xingapi; //from w w w . ja v a 2 s. co m import java.util.List; public abstract class BaseAPI { protected void validateNotEmpty(String arg, String argName) { if (arg == null || arg.isEmpty()) { throw new IllegalArgumentException(String.format("%s must not be NULL or empty", argName)); } } protected void validateNotEmpty(List list, String argName) { if (list == null || list.isEmpty()) { throw new IllegalArgumentException(String.format("%s must not be NULL or empty", argName)); } } }