java.lang.Object
edu.internet2.ndt.NDTUtils
Class that defines utility methods used by the NDT code.
Constructor Summary
ConstructorsConstructorDescriptionNDTUtils()Every method here is static and the class holds no fields, so an instance adds nothing; it exists only to give the utility class a documented entry point.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic booleanUtility method to check if the given string is empty ("") or null.static booleanisNotEmpty(String str) Utility method to check if the given string is not empty ("") or null.static Stringprtdbl(double paramDblToFormat) Utility method to print double value up to the hundredth place.static StringUtility method to encode the given string using UTF-8 encoding.
Constructor Details
NDTUtils
public NDTUtils()Every method here is static and the class holds no fields, so an instance adds nothing; it exists only to give the utility class a documented entry point.
Method Details
prtdbl
Utility method to print double value up to the hundredth place.- Parameters:
paramDblToFormat- Double numbers to format- Returns:
- String value of double number
isEmpty
Utility method to check if the given string is empty ("") or null.- Parameters:
str- String to check- Returns:
- true is the given string is empty; otherwise false
isNotEmpty
Utility method to check if the given string is not empty ("") or null.- Parameters:
str- String to check- Returns:
- true is the given string is not empty; otherwise false
urlEncode