fr.cnes.sitools.util
Class Util

java.lang.Object
  extended by fr.cnes.sitools.util.Util

public final class Util
extends java.lang.Object

Utility Class

Author:
AKKA

Method Summary
static boolean isEmpty(java.lang.String object)
          Check if object is null or empty
static boolean isNotEmpty(java.lang.String object)
          Check if object is not null and not empty
static boolean isSet(java.lang.Object object)
          Check if object is not null
static boolean isTrue(java.lang.Object object)
          Check if object is not null and not empty and text is "true".
static boolean isValidEmail(java.lang.String email)
          Check that email is a valid email Address
static boolean isWindows()
          Indicates if the current operating system is in the Windows family.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSet

public static boolean isSet(java.lang.Object object)
Check if object is not null

Parameters:
object - Object
Returns:
true if object not null

isNotEmpty

public static boolean isNotEmpty(java.lang.String object)
Check if object is not null and not empty

Parameters:
object - the String to check
Returns:
true if object is not empty, false otherwise

isEmpty

public static boolean isEmpty(java.lang.String object)
Check if object is null or empty

Parameters:
object - the String to check
Returns:
true if object is empty or null, false otherwise

isTrue

public static boolean isTrue(java.lang.Object object)
Check if object is not null and not empty and text is "true".

Parameters:
object - the Object
Returns:
true if object is not null and not empty and text is "true", false otherwise

isValidEmail

public static boolean isValidEmail(java.lang.String email)
Check that email is a valid email Address

Parameters:
email - the email Address String
Returns:
true if email is a valid email address, false otherwise

isWindows

public static boolean isWindows()
Indicates if the current operating system is in the Windows family.

Returns:
True if the current operating system is in the Windows family.


Copyright © 2010-2013 CNES. All Rights Reserved.