Home
last modified time | relevance | path

Searched refs:isNumber (Results 1 – 25 of 94) sorted by relevance

1234

/external/gson/gson/src/main/java/com/google/gson/
DJsonPrimitive.java118 public boolean isNumber() { in isNumber() method in JsonPrimitive
154 } else if (isNumber()) { in getAsString()
167 return isNumber() ? getAsNumber().doubleValue() : Double.parseDouble(getAsString()); in getAsDouble()
192 return isNumber() ? getAsNumber().floatValue() : Float.parseFloat(getAsString()); in getAsFloat()
203 return isNumber() ? getAsNumber().longValue() : Long.parseLong(getAsString()); in getAsLong()
211 return isNumber() ? getAsNumber().shortValue() : Short.parseShort(getAsString()); in getAsShort()
219 return isNumber() ? getAsNumber().intValue() : Integer.parseInt(getAsString()); in getAsInt()
227 return isNumber() ? getAsNumber().byteValue() : Byte.parseByte(getAsString()); in getAsByte()
/external/flatbuffers/ts/flexbuffers/
Dreference.ts3 import { isNumber, isIndirectNumber, isAVector, fixedTypedVectorElementSize, isFixedTypedVector, is…
41 isNumber(): boolean { return isNumber(this.valueType) || isIndirectNumber(this.valueType); } method in Reference
43 isInt(): boolean { return this.isNumber() && !this.isFloat(); }
186 if (this.isNumber()) {
Dvalue-type-util.ts8 export function isNumber(value: ValueType): boolean { function
/external/skia/src/sksl/ir/
DSkSLPrefixExpression.cpp166 if (baseType.isArray() || !baseType.componentType().isNumber()) { in Convert()
174 if (baseType.isArray() || !baseType.componentType().isNumber()) { in Convert()
183 if (!baseType.isNumber()) { in Convert()
241 SkASSERT(base->type().componentType().isNumber()); in Make()
247 SkASSERT(base->type().componentType().isNumber()); in Make()
256 SkASSERT(base->type().isNumber()); in Make()
DSkSLPostfixExpression.cpp23 if (!baseType.isNumber()) { in Convert()
37 SkASSERT(base->type().isNumber()); in Make()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DCommonTokenStream.js145 } else if (org.antlr.lang.isNumber(types)) {
263 if (!org.antlr.lang.isNumber(marker)) {
295 if (!org.antlr.lang.isNumber(start) && !org.antlr.lang.isNumber(stop)) {
DTokenRewriteStream.js359 if (!org.antlr.lang.isNumber(start)) {
362 if (!org.antlr.lang.isNumber(end)) {
445 if (!org.antlr.lang.isNumber(start)) {
448 if (!org.antlr.lang.isNumber(end)) {
DBitSet.js25 } else if(org.antlr.lang.isNumber(bits)) {
116 if (org.antlr.lang.isNumber(el)) {
117 if (org.antlr.lang.isNumber(el2)) {
150 if (org.antlr.lang.isNumber(i)) {
/external/gson/gson/src/test/java/com/google/gson/
DLongSerializationPolicyTest.java35 assertTrue(jsonPrimitive.isNumber()); in testDefaultLongSerialization()
62 assertFalse(jsonPrimitive.isNumber()); in testStringLongSerialization()
/external/autotest/frontend/client/src/autotest/tko/
DSpreadsheetDataProcessor.java132 int row = (int) headerIndices.get(0).isNumber().doubleValue(); in processRow()
133 int column = (int) headerIndices.get(1).isNumber().doubleValue(); in processRow()
145 cellInfo.testIndex = (int) group.get("test_idx").isNumber().doubleValue(); in processRow()
DSavedQueriesControl.java110 int id = (int) query.get("id").isNumber().doubleValue(); in fillQueryList()
196 int queryId = (int) query.get("id").isNumber().doubleValue(); in onHistoryChanged()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DNumberNodesTest.java47 assertTrue(result.isNumber()); in testIntViaMapper()
128 assertTrue(result.isNumber()); in testLongViaMapper()
184 assertTrue(result.isNumber()); in testDoubleViaMapper()
251 assertTrue(n.isNumber()); in testDecimalNode()
278 assertTrue(result.isNumber()); in testDecimalNode()
329 assertTrue(n.isNumber()); in testBigIntegerNode()
DNodeTestBase.java11 assertFalse(n.isNumber()); in assertNodeNumbersForNonNumeric()
DTestJsonPointer.java20 assertTrue(n.isNumber()); in testIt()
/external/antlr/runtime/JavaScript/src/org/
Dantlr.js269 return l.isNumber(o.length) && l.isFunction(o.splice);
306 isNumber: function(o) {
482 return (l.isObject(o) || l.isString(o) || l.isNumber(o) || l.isBoolean(o));
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DCommonTreeNodeStream.js250 if (!org.antlr.lang.isNumber(marker)) {
341 if ( !org.antlr.lang.isNumber(start) || !org.antlr.lang.isNumber(stop) ) {
/external/rust/cxx/book/src/binding/
Dcxxstring.md45 fn isNumber(self: &Json) -> bool;
95 bool isNumber() const;
123 bool json::isNumber() const { return std::holds_alternative<number>(value); }
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java561 Predicate<Object> isNumber = Predicates.instanceOf(Number.class); in testIsInstanceOf_subclass() local
563 assertTrue(isNumber.apply(1)); in testIsInstanceOf_subclass()
564 assertTrue(isNumber.apply(2.0f)); in testIsInstanceOf_subclass()
565 assertFalse(isNumber.apply("")); in testIsInstanceOf_subclass()
566 assertFalse(isNumber.apply(null)); in testIsInstanceOf_subclass()
610 Predicate<Class<?>> isNumber = Predicates.subtypeOf(Number.class); in testSubtypeOf_subclass() local
612 assertTrue(isNumber.apply(Integer.class)); in testSubtypeOf_subclass()
613 assertTrue(isNumber.apply(Float.class)); in testSubtypeOf_subclass()
/external/guava/android/guava-tests/test/com/google/common/base/
DPredicatesTest.java561 Predicate<Object> isNumber = Predicates.instanceOf(Number.class); in testIsInstanceOf_subclass() local
563 assertTrue(isNumber.apply(1)); in testIsInstanceOf_subclass()
564 assertTrue(isNumber.apply(2.0f)); in testIsInstanceOf_subclass()
565 assertFalse(isNumber.apply("")); in testIsInstanceOf_subclass()
566 assertFalse(isNumber.apply(null)); in testIsInstanceOf_subclass()
610 Predicate<Class<?>> isNumber = Predicates.subtypeOf(Number.class); in testSubtypeOf_subclass() local
612 assertTrue(isNumber.apply(Integer.class)); in testSubtypeOf_subclass()
613 assertTrue(isNumber.apply(Float.class)); in testSubtypeOf_subclass()
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/time/
DFastDateParser.java201 if (!strategy.isNumber() || !lt.hasNext()) { in getMaxWidth()
206 return nextStrategy.isNumber() ? width : 0; in getMaxWidth()
524 boolean isNumber() { in isNumber() method in FastDateParser.Strategy
553 boolean isNumber() { in isNumber() method in FastDateParser.PatternStrategy
693 boolean isNumber() { in isNumber() method in FastDateParser.CopyQuotedStrategy
803 boolean isNumber() { in isNumber() method in FastDateParser.NumberStrategy
/external/autotest/frontend/client/src/autotest/afe/create/
DCreateJobViewPresenter.java216 Double priorityValue = jobObject.get("priority").isNumber().getValue(); in cloneJob()
217 Double maxPriority = staticData.getData("max_schedulable_priority").isNumber().getValue(); in cloneJob()
269 (int) metaHostCounts.get(label).isNumber().doubleValue()); in cloneJob()
278 double maxPriority = maxSchedulableValue.isNumber().getValue(); in populatePriorities()
282 double priorityValue = priorityData.get(0).isNumber().getValue(); in populatePriorities()
453 maxRetries = (int) Math.max(maxRetries, test.get("test_retry").isNumber().getValue()); in getMaximumRetriesCount()
816 int id = (int) result.isNumber().doubleValue(); in submitJob()
/external/autotest/frontend/client/src/autotest/common/
DStatusSummary.java34 return (int) group.get(field).isNumber().doubleValue(); in getField()
DStaticDataRepository.java53 Double priority_value = priorityData.get(0).isNumber().getValue(); in populatePriorities()
/external/autotest/frontend/client/src/autotest/common/table/
DDynamicTableSelectionManager.java79 JSONNumber id = object.get("id").isNumber(); in selectedIdList()
/external/autotest/frontend/client/src/autotest/afe/
DJobTable.java63 Double priorityValue = row.get("priority").isNumber().getValue(); in preprocessRow()

1234