fuint-framework/fuint-util/src/main/java/com/fuint/util/ArrayUtil.java

(开头部分) 175KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.fuint.util;

import java.lang.reflect.Array;
import java.util.*;

/**
 * 有关数组处理的工具类。
 *
 * <p>
 * 这个类中的每个方法都可以“安全”地处理<code>null</code>,而不会抛出<code>NullPointerException</code>。
 * </p>
 *
 * @author Harrison han
 * @version 1.0
 */
public class ArrayUtil {
    /* ============================================================================ */
    /*  常量和singleton。                                                           */
    /* ============================================================================ */

    /** 空的<code>Object</code>数组。 */
    public static final Object[]    EMPTY_OBJECT_ARRAY             = new Object[0];

    /** 空的<code>Class</code>数组。 */
    public static final Class[]     EMPTY_CLASS_ARRAY              = new Class[0];

    /** 空的<code>String</code>数组。 */
    public static final String[]    EMPTY_STRING_ARRAY             = new String[0];

    /** 空的<code>long</code>数组。 */
    public static final long[]      EMPTY_LONG_ARRAY               = new long[0];

    /** 空的<code>Long</code>数组。 */
    public static final Long[]      EMPTY_LONG_OBJECT_ARRAY        = new Long[0];

    /** 空的<code>int</code>数组。 */
    public static final int[]       EMPTY_INT_ARRAY                = new int[0];

    /** 空的<code>Integer</code>数组。 */
    public static final Integer[]   EMPTY_INTEGER_OBJECT_ARRAY     = new Integer[0];

    /** 空的<code>short</code>数组。 */
    public static final short[]     EMPTY_SHORT_ARRAY              = new short[0];

    /** 空的<code>Short</code>数组。 */
    public static final Short[]     EMPTY_SHORT_OBJECT_ARRAY       = new Short[0];

    /** 空的<code>byte</code>数组。 */
    public static final byte[]      EMPTY_BYTE_ARRAY               = new byte[0];

    /** 空的<code>Byte</code>数组。 */
    public static final Byte[]      EMPTY_BYTE_OBJECT_ARRAY        = new Byte[0];

    /** 空的<code>double</code>数组。 */
    public static final double[]    EMPTY_DOUBLE_ARRAY             = new double[0];

    /** 空的<code>Double</code>数组。 */
    public static final Double[]    EMPTY_DOUBLE_OBJECT_ARRAY      = new Double[0];

    /** 空的<code>float</code>数组。 */
后面还有 5487 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。