ExtensionList extension
- on
Methods
-
getJsonPretty(
) → String -
Available on List, provided by the ExtensionList extension
将list转化为json字符串,换行 -
isLengthBetween(
int minLength, int maxLength) → bool -
Available on List, provided by the ExtensionList extension
Checks if length of list is BETWEEN minLength to maxLength. 检查数据长度是否在minLength到maxLength之间 -
isLengthEqualTo(
int maxLength) → bool -
Available on List, provided by the ExtensionList extension
Checks if length of list is EQUAL than maxLength. 检查数据长度是否等于maxLength -
isLengthGreaterOrEqual(
int maxLength) → bool -
Available on List, provided by the ExtensionList extension
Checks if length of list is GREATER OR EQUAL to maxLength. 检查数据长度是否大于或等于maxLength -
isLengthGreaterThan(
int maxLength) → bool -
Available on List, provided by the ExtensionList extension
Checks if length of list is GREATER than maxLength. 检查数据长度是否大于maxLength -
isLengthLowerOrEqual(
int maxLength) → bool -
Available on List, provided by the ExtensionList extension
Checks if length of list is LOWER OR EQUAL to maxLength. 检查数据长度是否小于或等于maxLength -
isNull(
) → bool -
Available on List, provided by the ExtensionList extension
Checks if data is null. 判断对象是否为null -
isNullOrBlank(
) → bool -
Available on List, provided by the ExtensionList extension
Checks if data is null or Blank (Empty or only contains whitespace). 检查数据是否为空或空(空或只包含空格) -
toJsonString(
) → String -
Available on List, provided by the ExtensionList extension
Transform list to json 将list转化为json字符串 -
valueTotal(
) → num -
Available on List, provided by the ExtensionList extension
Get total value of list of num (int/double) 获取num列表的总值(int/double) Example:1,2,3,4
=> 10