/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | UnixAsynchronousSocketChannelImpl.java | 80 private CompletionHandler<Number,Object> readHandler; 82 private PendingFuture<Number,Object> readFuture; 90 private CompletionHandler<Number,Object> writeHandler; 92 private PendingFuture<Number,Object> writeFuture; 400 CompletionHandler<Number,Object> handler = readHandler; in finishRead() 402 PendingFuture<Number,Object> future = readFuture; in finishRead() 446 Number result = (exc != null) ? null : (scattering) ? in finishRead() 447 (Number)Long.valueOf(n) : (Number)Integer.valueOf(n); in finishRead() 463 CompletionHandler<Number,Object> handler = null; 465 PendingFuture<Number,Object> future = null; [all …]
|
D | AsynchronousSocketChannelImpl.java | 215 abstract <V extends Number,A> Future<V> implRead(boolean isScatteringRead, in implRead() 224 private <V extends Number,A> Future<V> read(boolean isScatteringRead, in read() 264 Number result; in read() 324 abstract <V extends Number,A> Future<V> implWrite(boolean isGatheringWrite, in implWrite() 333 private <V extends Number,A> Future<V> write(boolean isGatheringWrite, in write() 375 Number result = (isGatheringWrite) ? (Number)0L : (Number)0; in write()
|
/libcore/json/src/main/java/org/json/ |
D | JSON.java | 47 } else if (value instanceof Number) { in toDouble() 48 return ((Number) value).doubleValue(); in toDouble() 61 } else if (value instanceof Number) { in toInteger() 62 return ((Number) value).intValue(); in toInteger() 75 } else if (value instanceof Number) { in toLong() 76 return ((Number) value).longValue(); in toLong()
|
D | JSONArray.java | 195 if (value instanceof Number) { in checkedPut() 196 JSON.checkDouble(((Number) value).doubleValue()); in checkedPut() 260 if (value instanceof Number) { in put() 262 JSON.checkDouble(((Number) value).doubleValue()); in put()
|
D | JSONStringer.java | 257 } else if (value instanceof Number) { in value() 258 out.append(JSONObject.numberToString((Number) value)); in value()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 105 public void test_derive(final TemporalField field1, final Number value1, in test_derive() 106 final TemporalField field2, final Number value2, in test_derive() 107 final TemporalField field3, final Number value3, in test_derive() 108 final TemporalField field4, final Number value4, in test_derive() 186 … test_normalized(final TemporalField field1, final Number value1, TemporalField expectedField, Num… in test_normalized()
|
/libcore/ojluni/src/main/java/java/text/ |
D | NumberFormat.java | 242 return format(((Number)number).longValue(), toAppendTo, pos); in format() 243 } else if (number instanceof Number) { in format() 244 return format(((Number)number).doubleValue(), toAppendTo, pos); in format() 357 public abstract Number parse(String source, ParsePosition parsePosition); in parse() 371 public Number parse(String source) throws ParseException { in parse() 373 Number result = parse(source, parsePosition); in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | TypeVariableTest.java | 152 static class G <T extends Number>{} 160 assertEquals(Number.class, bounds[0]); in testSingleBound() 165 static class H <T extends Number & Serializable >{} 172 assertEquals(Number.class, bounds[0]); in testMultipleBound()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Number.java | 55 public abstract class Number implements java.io.Serializable { class
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | HexEncodingTest.java | 44 Number toEncode = (Number) testCase[0]; in testEncodeByte()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_DecimalFormat.java | 44 Number number = new Double(10000000.76); in t_format_with_FieldPosition() 134 Number number = new Double(350.76); in t_formatToCharacterIterator() 135 Number longNumber = new Long(100300400); in t_formatToCharacterIterator() 136 Number zeroNumber = new Long(0); in t_formatToCharacterIterator() 137 Number negativeNumber = new Double(-350.76); in t_formatToCharacterIterator()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleAccessorsTest.java | 762 Number t = (Number)h0.invoke(); in testStaticGetter() 785 Number t = (Number)h0.invoke(valueHolder); in testMemberGetter() 803 /*package*/ static Number getDoubleAsNumber() { in getDoubleAsNumber() 806 /*package*/ static Number getFloatAsNumber() { in getFloatAsNumber() 819 Number floatNumber = getFloatAsNumber(); in testMemberSetter() 844 Number doubleNumber = getDoubleAsNumber(); in testMemberSetter() 849 Number doubleNumber = null; in testMemberSetter() 874 Number floatNumber = new Float(0.88f); in testStaticSetter() 897 Number doubleNumber = getDoubleAsNumber(); in testStaticSetter() 902 Number doubleNumber = new Double(1.01); in testStaticSetter()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | VMRuntimeTest.java | 78 doTestNewNonMovableArray(Number.class, step, maxLengthForLoop); in testNewNonMovableArray() 132 doTestNewUnpaddedArray(Number.class, step, maxLengthForLoop); in testNewUnpaddedArray()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ToArrayOpTest.java | 127 Number[] ns = exerciseTerminalOps(data, f, s -> s.toArray(Number[]::new)); in testDistinctAndSortedPermutations() 128 assertEquals(ns.getClass(), Number[].class); in testDistinctAndSortedPermutations() 193 Number[] ns = withData(data).terminal(f, s -> s.toArray(Number[]::new)) 196 assertEquals(ns.getClass(), Number[].class);
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKPadPrinterParser.java | 130 …public void test_parseStrict(String text, int expectedIndex, int expectedErrorIndex, Number expect… in test_parseStrict() 171 …public void test_parseLenient(String text, int expectedIndex, int expectedErrorIndex, Number expec… in test_parseLenient()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | Wrapper.java | 520 Number xn = numberValue(x); in wrap() 557 private static Number numberValue(Object x) { in numberValue() 558 if (x instanceof Number) return (Number)x; in numberValue() 562 return (Number)x; in numberValue()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassTest.java | 375 T extends Number, 376 U extends Function<? extends Number, ? super Number>>
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 41 public class AtomicInteger extends java.lang.Number implements java.io.Serializable {
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 400 public abstract Number getField(final DatatypeConstants.Field field); in getField() 413 Number n = getField(field); in getFieldValueAsInt()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | NumberFormat.java | 77 public abstract java.lang.Number parse( in parse() 80 public java.lang.Number parse(java.lang.String source) throws java.text.ParseException { in parse()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | DecimalFormatTest.java | 771 Number result = df.parse(input, pos); in assertParseError() 781 private static void assertParsedAndConsumedAll(String pattern, String input, Number expected) { in assertParsedAndConsumedAll() 785 private static void assertParsed(String pattern, String input, Number expected, in assertParsed() 790 Number result = df.parse(input, pos); in assertParsed() 795 private static String describeParseResult(Number result, ParsePosition pos) { in describeParseResult()
|
D | NumberFormatTest.java | 33 class MyNumber extends Number { in test_custom_Number_gets_longValue() 58 public Number parse(String string, ParsePosition p) { in test_small_BigInteger_gets_longValue()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_DecimalFormat.java | 42 Number number = new Double(10000000.76); in t_format_with_FieldPosition() 98 Number number = new Double(350.76); in t_formatToCharacterIterator() 99 Number negativeNumber = new Double(-350.76); in t_formatToCharacterIterator()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicReferenceArrayTest.java | 65 AtomicReferenceArray<Number> aa = new AtomicReferenceArray<Number>(a); in testConstructorSubClassArray()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Float.java | 32 public final class Float extends java.lang.Number implements java.lang.Comparable<java.lang.Float> {
|