本文整理了Java中com.strobel.core.ArrayUtilities.isNullOrEmpty()
方法的一些代码示例,展示了ArrayUtilities.isNullOrEmpty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayUtilities.isNullOrEmpty()
方法的具体详情如下:
包路径:com.strobel.core.ArrayUtilities
类名称:ArrayUtilities
方法名:isNullOrEmpty
暂无
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static byte[] prepend(final byte[] array, final byte... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, 0, values);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static short[] prepend(final short[] array, final short... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, 0, values);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static long[] prepend(final long[] array, final long... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, 0, values);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static float[] prepend(final float[] array, final float... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, 0, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static float[] prepend(final float[] array, final float... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, 0, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static double[] prepend(final double[] array, final double... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, 0, values);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static boolean[] append(final boolean[] array, final boolean... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, VerifyArgument.notNull(array, "array").length, values);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static float[] prepend(final float[] array, final float value) {
if (isNullOrEmpty(array)) {
return new float[] { value };
}
return insert(array, 0, value);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static char[] append(final char[] array, final char... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, VerifyArgument.notNull(array, "array").length, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static int[] append(final int[] array, final int... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, VerifyArgument.notNull(array, "array").length, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static float[] append(final float[] array, final float... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, VerifyArgument.notNull(array, "array").length, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static float[] prepend(final float[] array, final float value) {
if (isNullOrEmpty(array)) {
return new float[] { value };
}
return insert(array, 0, value);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/windup-procyon-core
public static double[] append(final double[] array, final double... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, VerifyArgument.notNull(array, "array").length, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core
public static char[] prepend(final char[] array, final char value) {
if (isNullOrEmpty(array)) {
return new char[] { value };
}
return insert(array, 0, value);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core
public static int[] append(final int[] array, final int... values) {
if (isNullOrEmpty(array)) {
if (isNullOrEmpty(values)) {
return values;
}
return Arrays.copyOf(values, values.length);
}
return insert(array, VerifyArgument.notNull(array, "array").length, values);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core
public static int[] prepend(final int[] array, final int value) {
if (isNullOrEmpty(array)) {
return new int[] { value };
}
return insert(array, 0, value);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-core
public static long[] append(final long[] array, final long value) {
if (isNullOrEmpty(array)) {
return new long[] { value };
}
return insert(array, VerifyArgument.notNull(array, "array").length, value);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core
public static long[] append(final long[] array, final long value) {
if (isNullOrEmpty(array)) {
return new long[] { value };
}
return insert(array, VerifyArgument.notNull(array, "array").length, value);
}
代码示例来源:origin: org.jboss.windup.decompiler.procyon/procyon-core
public static float[] append(final float[] array, final float value) {
if (isNullOrEmpty(array)) {
return new float[] { value };
}
return insert(array, VerifyArgument.notNull(array, "array").length, value);
}
代码示例来源:origin: org.bitbucket.mstrobel/procyon-reflection
public static TypeList list(final Class<?>... classes) {
if (ArrayUtilities.isNullOrEmpty(classes)) {
return TypeList.empty();
}
final Type<?>[] types = new Type<?>[classes.length];
for (int i = 0, n = classes.length; i < n; i++) {
types[i] = of(classes[i]);
}
return new TypeList(types);
}
内容来源于网络,如有侵权,请联系作者删除!