com.aliyun.oss.common.utils

## 类 CodingUtils

- java.lang.Object
- - com.aliyun.oss.common.utils.CodingUtils

-     public class CodingUtils
      extends Object

  Utils for common coding.

- - ### 构造器概要

    构造器
    构造器和说明
    `CodingUtils()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `assertListNotNullOrEmpty(List<?> param, String paramName)`
    `static void` | `assertParameterInRange(long param, long lower, long upper)`
    `static void` | `assertParameterNotNull(Object param, String paramName)`
    `static void` | `assertStringNotNullOrEmpty(String param, String paramName)`
    `static void` | `assertTrue(boolean condition, String message)`
    `static boolean` | `checkParamRange(long param, long from, boolean leftInclusive, long to, boolean rightInclusive)`
    `static boolean` | `isNullOrEmpty(String value)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### CodingUtils

          public CodingUtils()

  - ### 方法详细资料

    - #### assertParameterNotNull

          public static void assertParameterNotNull(Object param,
                                    String paramName)

    - #### assertParameterInRange

          public static void assertParameterInRange(long param,
                                    long lower,
                                    long upper)

    - #### assertStringNotNullOrEmpty

          public static void assertStringNotNullOrEmpty(String param,
                                        String paramName)

    - #### assertListNotNullOrEmpty

          public static void assertListNotNullOrEmpty(List<?> param,
                                      String paramName)

    - #### isNullOrEmpty

          public static boolean isNullOrEmpty(String value)

    - #### assertTrue

          public static void assertTrue(boolean condition,
                        String message)

    - #### checkParamRange

          public static boolean checkParamRange(long param,
                                long from,
                                boolean leftInclusive,
                                long to,
                                boolean rightInclusive)

Copyright © 2020. All Rights Reserved.