Class ObjectExpressionVariable

    • Constructor Detail

      • ObjectExpressionVariable

        public ObjectExpressionVariable()
    • Method Detail

      • isEmpty

        public boolean isEmpty​(@Nullable
                               Object o)
        A given object is defined as 'empty' if the following is true:
        1. The object is null
        2. The object is a Collection or array and the collection or array is empty (no items)
        3. The object is a String and the string is empty (no characters)
        Parameters:
        o - the object to check
        Returns:
        whether or not the given object is 'empty'
      • isNotEmpty

        public boolean isNotEmpty​(@Nullable
                                  Object o)
        The opposite of isEmpty(Object)
        Parameters:
        o - the object to check
        Returns:
        whether or not the given object is 'empty'