本文整理了Java中io.advantageous.boon.core.Exceptions.requireNonNull()
方法的一些代码示例,展示了Exceptions.requireNonNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Exceptions.requireNonNull()
方法的具体详情如下:
包路径:io.advantageous.boon.core.Exceptions
类名称:Exceptions
方法名:requireNonNull
暂无
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* @param array array
* @return array
*/
public static float[] array( final float... array ) {
Exceptions.requireNonNull( array );
return array;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* @param array array
* @return array
*/
public static short[] array( final short... array ) {
Exceptions.requireNonNull( array );
return array;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
/**
* @param array array
* @return array
*/
public static long[] array( final long... array ) {
Exceptions.requireNonNull( array );
return array;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public Pair(Pair<K, V> impl) {
requireNonNull( impl );
requireNonNull( impl.k );
this.k = impl.k;
this.v = impl.v;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* @param array array
* @return array
*/
public static int[] array( final int... array ) {
Exceptions.requireNonNull( array );
return array;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* @param array array
* @return array
*/
public static double[] array( final double... array ) {
Exceptions.requireNonNull( array );
return array;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static double[] grow( double[] array ) {
Exceptions.requireNonNull( array );
double[] newArray = new double[ array.length * 2 ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static float[] grow( float[] array ) {
Exceptions.requireNonNull( array );
float[] newArray = new float[ array.length * 2 ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public static float[] grow( float[] array ) {
Exceptions.requireNonNull( array );
float[] newArray = new float[ array.length * 2 ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public static float[] shrink( float[] array, int size ) {
Exceptions.requireNonNull( array );
float[] newArray = new float[ array.length - size ];
System.arraycopy( array, 0, newArray, 0, array.length - size );
return newArray;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public static double[] grow( double[] array, final int size ) {
Exceptions.requireNonNull(array);
double[] newArray = new double[ array.length + size ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public static double[] grow( double[] array ) {
Exceptions.requireNonNull( array );
double[] newArray = new double[ array.length * 2 ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static double[] shrink( double[] array, int size ) {
Exceptions.requireNonNull( array );
double[] newArray = new double[ array.length - size ];
System.arraycopy( array, 0, newArray, 0, array.length - size );
return newArray;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static float[] grow( float[] array, final int size ) {
Exceptions.requireNonNull(array);
float[] newArray = new float[ array.length + size ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static short[] shrink( short[] array, int size ) {
Exceptions.requireNonNull( array );
short[] newArray = new short[ array.length - size ];
System.arraycopy( array, 0, newArray, 0, array.length - size );
return newArray;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static short[] copy( short[] array ) {
Exceptions.requireNonNull( array );
short[] newArray = new short[ array.length ];
System.arraycopy( array, 0, newArray, 0, array.length );
return newArray;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public static byte[] copy( byte[] array, int offset, int length ) {
Exceptions.requireNonNull( array );
byte[] newArray = new byte[ length ];
System.arraycopy( array, offset, newArray, 0, length );
return newArray;
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
public static float[] add( float[] array, float[] array2 ) {
Exceptions.requireNonNull( array );
float[] newArray = new float[ array.length + array2.length ];
System.arraycopy( array, 0, newArray, 0, array.length );
System.arraycopy( array2, 0, newArray, array.length, array2.length );
return newArray;
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public Pair(Entry<K, V> entry) {
requireNonNull( entry );
requireNonNull( entry.key() );
this.k = entry.key();
this.v = entry.value();
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
public static byte[] insertDoubleInto( byte[] array, int index, double value ) {
Exceptions.requireNonNull( array );
byte[] holder = new byte[ 4 ];
doubleTo( holder, 0, value );
return insert( array, index, holder );
}
内容来源于网络,如有侵权,请联系作者删除!