Searched refs:shortValue (Results 1 - 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/lang/
H A DNumber.java118 public short shortValue() { method in class:Number
H A DShort.java337 public short shortValue() { method in class:Short
426 return value == ((Short)obj).shortValue();
H A DByte.java332 public short shortValue() { method in class:Byte
H A DDouble.java669 public short shortValue() { method in class:Double
H A DFloat.java592 public short shortValue() { method in class:Float
H A DInteger.java919 public short shortValue() { method in class:Integer
H A DLong.java987 public short shortValue() { method in class:Long
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DNumberTest.java45 * java.lang.Number#shortValue()
51 .shortValue());
55 .shortValue());
59 .shortValue());
63 .shortValue());
H A DShortTest.java68 .shortValue() == (short) -1);
70 .shortValue() == (short) -100);
72 .shortValue() == (short) 23);
74 .shortValue() == (short) 16);
76 .shortValue() == (short) 32767);
78 .shortValue() == (short) -32767);
80 .shortValue() == (short) -32768);
292 .shortValue());
294 .shortValue());
305 .shortValue());
[all...]
H A DByteTest.java345 * java.lang.Byte#shortValue()
348 assertEquals(-1, new Byte((byte) -1).shortValue());
349 assertEquals(0, new Byte((byte) 0).shortValue());
350 assertEquals(1, new Byte((byte) 1).shortValue());
614 * java.lang.Byte#shortValue()
617 assertEquals((short) 127, new Byte((byte) 127).shortValue());
H A DIntegerTest.java433 * java.lang.Integer#shortValue()
436 // Test for method short java.lang.Integer.shortValue()
438 assertEquals("Returned incorrect long value", -32768, i.shortValue());
996 * java.lang.Integer#shortValue()
999 assertEquals(-1, new Integer(-1).shortValue());
1000 assertEquals(0, new Integer(0).shortValue());
1001 assertEquals(1, new Integer(1).shortValue());
H A DLongTest.java831 * java.lang.Long#shortValue()
834 assertEquals(-1, new Long(-1).shortValue());
835 assertEquals(0, new Long(0).shortValue());
836 assertEquals(1, new Long(1).shortValue());
H A DFloatTest.java819 * java.lang.Float#shortValue()
822 // Test for method short java.lang.Float.shortValue()
825 assertTrue("Returned incorrect short value", f.shortValue() == 0
826 && f2.shortValue() == 90);
/libcore/support/src/test/java/tests/support/
H A DSupport_GetPutFields.java44 public short shortValue = 0; field in class:Support_GetPutFields
85 shortValue = 1234;
102 shortValue == other.shortValue
117 shortValue = getField.get("shortValue", (short) 0);
130 putField.put("shortValue", shortValue);
H A DSupport_GetPutFieldsDeprecated.java46 public short shortValue = 0; field in class:Support_GetPutFieldsDeprecated
87 shortValue = 3078;
104 shortValue == other.shortValue
118 shortValue = getField.get("shortValue", (short) 0);
131 putField.put("shortValue", shortValue);
H A DSupport_GetPutFieldsDefaulted.java55 public short shortValue = 0; field in class:Support_GetPutFieldsDefaulted
96 shortValue = 4321;
113 shortValue == other.shortValue
129 shortValue = getField.get("shortValue", (short) 4321);
/libcore/luni/src/test/java/libcore/java/lang/
H A DShortTest.java48 assertEquals(b, Integer.valueOf(b).shortValue());
57 assertEquals(b, Long.valueOf(b).shortValue());
/libcore/support/src/test/java/tests/util/
H A DCallVerificationStack.java279 return value.shortValue();
/libcore/luni/src/test/java/libcore/java/lang/invoke/
H A DMethodHandleAccessorsTest.java475 short shortValue = value instanceof Short ? ((Short)value).shortValue() : (short)0;
476 setShort(methodHandle, valueHolder, shortValue,
478 setShort(methodHandle, shortValue,
480 getShort(methodHandle, valueHolder, shortValue,
482 getShort(methodHandle, shortValue,
/libcore/luni/src/test/java/libcore/java/math/
H A DOldBigDecimalConvertTest.java345 assertTrue("incorrect value", aNumber.shortValue() == result);
352 assertTrue("incorrect value", aNumber.shortValue() == result);
/libcore/luni/src/test/java/libcore/java/text/
H A DNumberFormatTest.java39 public short shortValue() { throw new UnsupportedOperationException(); }
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DArray.java491 setShort(array, index, ((Short) value).shortValue());
/libcore/ojluni/src/main/java/java/util/
H A DScanner.java1996 short val = ((Short)typeCache).shortValue();
H A DFormatter.java2876 print(((Short)arg).shortValue(), l);
2948 short i = ((Short)arg).shortValue();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DFieldTest.java304 f.setShort(o, ((Short) value).shortValue());

Completed in 1973 milliseconds

12