com.nimbusds.oauth2.sdk.util
Class StringUtils

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.util.StringUtils

public class StringUtils
extends Object

String utilities.

Version:
$version$ (2012-10-10)
Author:
Vladimir Dzhuvinov

Method Summary
static boolean isDefined(String s)
          Returns true if the specified string is not null and contains non-whitespace characters.
static boolean isUndefined(String s)
          Returns true if the specified string is null or contains whitespace characters only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isDefined

public static boolean isDefined(String s)
Returns true if the specified string is not null and contains non-whitespace characters.

Parameters:
s - The string to check. May be null.
Returns:
true if the string is not null and contains non-whitespace characters, else false.

isUndefined

public static boolean isUndefined(String s)
Returns true if the specified string is null or contains whitespace characters only.

Parameters:
s - The string to check. May be null.
Returns:
true if the string is null or contains whitespace characters only, else false.


Copyright © 2013 NimbusDS. All Rights Reserved.