Method shortValue()
Return type: short
Member of:
java.lang.Short
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
ps.setShort(index, ((Short) value).shortValue());
2
short v = ((Short)value).shortValue();
3
myValue = ((Short)aValue).shortValue();
4
assertTrue(-15 == ((Short)disp.invoke("sumShorts", shortArgs)).shortValue());
5
assertTrue(117 == ((Short)disp.get("propShort")).shortValue());
6
short data = s.shortValue();
7
addParameter(value.shortValue());
8
return (valSet_) ? (int)dataObj_.shortValue() : 1231;
9
return (System.currentTimeMillis() - date.getTime()) < days.shortValue()*1000L*60L*60L*24L;
10
preparedStatement.setShort(position, ((java.lang.Short) value).shortValue());
11
short val = ((Short)(convert(value))).shortValue();
12
a.insert_short(((Short)o).shortValue());
13
if ( id.shortValue() > maxSymbol )
14
any.insert_short(((Short)o).shortValue());
15
return asPython( ((Short)obj).shortValue());
16
columnTypes[i] = ((Short) tempType.elementAt(i)).shortValue();
17
((Short) randList.get(n)).shortValue()
18
setShort(parameterIndex, ((Short)x).shortValue());
19
dout.writeShort(((Short)obj).shortValue());
20
stmt.setShort(i++, ((Short) o).shortValue());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.