Class UndefinedValuesUtils

  • public class UndefinedValuesUtils
    extends Object
    This Util class defines conditions when objects can be considered undefined

    For example:
    • String is undefined if it is null or empty
    • Collection is undefined if it is null, empty or all items are undefined
    • Map is undefined if it is null, empty, or all values are undefined
    • Constructor Detail

      • UndefinedValuesUtils

        public UndefinedValuesUtils()
    • Method Detail

      • isUndefined

        public static boolean isUndefined​(Object o)
        Decides whether the o is defined or not
        o - object to check
        true when the o is undefined, false otherwise