本文整理汇总了Java中de.invesdwin.util.math.Shorts类的典型用法代码示例。如果您正苦于以下问题:Java Shorts类的具体用法?Java Shorts怎么用?Java Shorts使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Shorts类属于de.invesdwin.util.math包,在下文中一共展示了Shorts类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getShortMatrix
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short[][] getShortMatrix(final String variable) {
if (isNull(variable)) {
return null;
} else if (isEmpty(variable)) {
final int rows = getInteger("size(" + variable + ",1)");
final short[][] matrix = new short[rows][];
for (int i = 0; i < rows; i++) {
matrix[i] = new short[0];
}
return matrix;
} else {
final Object obj = get(variable);
return Shorts.checkedCastMatrix(obj);
}
}
示例2: getShortVector
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short[] getShortVector(final String variable) {
if (isNull(variable)) {
return null;
} else if (isEmpty(variable)) {
return new short[0];
} else {
final Object obj = get(variable);
return Shorts.checkedCastVector(obj);
}
}
示例3: getShort
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
default short getShort(final String variable) {
final int integerValue = getInteger(variable);
return Shorts.checkedCast(integerValue);
}
示例4: getShortVector
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
default short[] getShortVector(final String variable) {
final int[] integerValue = getIntegerVector(variable);
return Shorts.checkedCastVector(integerValue);
}
示例5: getShortMatrix
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
default short[][] getShortMatrix(final String variable) {
final int[][] integerValue = getIntegerMatrix(variable);
return Shorts.checkedCastMatrix(integerValue);
}
示例6: getShort
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short getShort(final String variable) {
final Object obj = get(variable);
return Shorts.checkedCast(obj);
}
示例7: getShortMatrix
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short[][] getShortMatrix(final String variable) {
return Shorts.checkedCastMatrix(getDoubleMatrix(variable));
}
示例8: getShort
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short getShort(final String variable) {
final int integerValue = getInteger(variable);
return Shorts.checkedCast(integerValue);
}
示例9: getShortVector
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short[] getShortVector(final String variable) {
final int[] integerValue = getIntegerVector(variable);
return Shorts.checkedCastVector(integerValue);
}
示例10: getShortMatrix
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short[][] getShortMatrix(final String variable) {
final int[][] integerValue = getIntegerMatrix(variable);
return Shorts.checkedCastMatrix(integerValue);
}
示例11: shortValue
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
@Override
public short shortValue() {
return Shorts.checkedCast(getDefaultRoundedValue());
}
示例12: encodeDigits
import de.invesdwin.util.math.Shorts; //导入依赖的package包/类
private short encodeDigits(final int digits) {
return Shorts.checkedCast(digits);
}