mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Add support for XEP-0133: Service Administration
also extend Smack's integration test framework to use XEP-0133 as a means for of throw away account creation. Fixes SMACK-742
This commit is contained in:
parent
1f1bc236fd
commit
274e5630c4
12 changed files with 414 additions and 56 deletions
|
@ -357,6 +357,36 @@ public class StringUtils {
|
|||
return cs == null || isEmpty(cs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if all given CharSequences are not empty.
|
||||
*
|
||||
* @param css the CharSequences to test.
|
||||
* @return true if all given CharSequences are not empty.
|
||||
*/
|
||||
public static boolean isNotEmpty(CharSequence... css) {
|
||||
for (CharSequence cs : css) {
|
||||
if (StringUtils.isNullOrEmpty(cs)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if all given CharSequences are either null or empty.
|
||||
*
|
||||
* @param css the CharSequences to test.
|
||||
* @return true if all given CharSequences are null or empty.
|
||||
*/
|
||||
public static boolean isNullOrEmpty(CharSequence... css) {
|
||||
for (CharSequence cs : css) {
|
||||
if (StringUtils.isNotEmpty(cs)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the given CharSequence is empty.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue