java.lang.Number Java Examples
The following examples show how to use
java.lang.Number.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MeasuresAnnotationTool.java From biomedicus with Apache License 2.0 | 5 votes |
private List<Integer> collectIds(Scanner scanner) { String tokens = scanner.nextLine(); if (tokens.length() == 0) { return Collections.emptyList(); } if ("u".equals(tokens)) { retry = true; return null; } if (!NON_NUMBER.matcher(tokens).matches()) { return null; } String[] numbers = SPACE_SPLIT.split(tokens); List<Integer> results = new ArrayList<>(numbers.length); for (String number : numbers) { try { Number parse = numberFormat.parse(number); int i = parse.intValue(); if (i > 0 && i < tokenCount) { results.add(i); } else { return null; } } catch (ParseException e) { return null; } } return results; }
Example #2
Source File: SQLiteAndroidDatabase.java From AvI with MIT License | 5 votes |
private void bindArgsToStatement(SQLiteStatement myStatement, JSONArray sqlArgs) throws JSONException { for (int i = 0; i < sqlArgs.length(); i++) { if (sqlArgs.get(i) instanceof Float || sqlArgs.get(i) instanceof Double) { myStatement.bindDouble(i + 1, sqlArgs.getDouble(i)); } else if (sqlArgs.get(i) instanceof Number) { myStatement.bindLong(i + 1, sqlArgs.getLong(i)); } else if (sqlArgs.isNull(i)) { myStatement.bindNull(i + 1); } else { myStatement.bindString(i + 1, sqlArgs.getString(i)); } } }
Example #3
Source File: ModelWithDataBindingBindingModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithDataBindingBindingModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #4
Source File: ModelWithCheckedChangeListener_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithCheckedChangeListener_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #5
Source File: IgnoreRequireHashCodeViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public IgnoreRequireHashCodeViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #6
Source File: TestFieldPropCallbackPropViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public TestFieldPropCallbackPropViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #7
Source File: ModelWithDataBindingWithoutDonothashBindingModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithDataBindingWithoutDonothashBindingModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #8
Source File: TestFieldPropNullOnRecycleOptionViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public TestFieldPropNullOnRecycleOptionViewModel_ id( @androidx.annotation.Nullable Number... arg0) { super.id(arg0); return this; }
Example #9
Source File: TestFieldPropDoNotHashOptionViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public TestFieldPropDoNotHashOptionViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #10
Source File: DataBindingModelWithAllFieldTypes_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public DataBindingModelWithAllFieldTypes_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #11
Source File: TestFieldPropModelPropViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public TestFieldPropModelPropViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #12
Source File: TestNullStringOverloadsViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public TestNullStringOverloadsViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #13
Source File: ModelWithViewClickListener_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithViewClickListener_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #14
Source File: PropGroupsViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public PropGroupsViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #15
Source File: ModelWithoutSetter_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithoutSetter_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #16
Source File: ModelWithConstructors_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithConstructors_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #17
Source File: LayoutOverloadsViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public LayoutOverloadsViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #18
Source File: ModelWithViewLongClickListener_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithViewLongClickListener_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #19
Source File: ModelWithSuperAttributes$SubModelWithSuperAttributes_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithSuperAttributes$SubModelWithSuperAttributes_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #20
Source File: BaseModelWithAttributeViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public BaseModelViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #21
Source File: GenerateDefaultLayoutMethodNextParentLayout$WithLayout_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public GenerateDefaultLayoutMethodNextParentLayout$WithLayout_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #22
Source File: ModelWithAnnotatedClass_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithAnnotatedClass_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #23
Source File: PropDefaultsViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public PropDefaultsViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #24
Source File: BaseModelViewWithSuperDiffBindModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public BaseModelViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #25
Source File: ModelWithAnnotatedClassAndSuperAttributes$SubModelWithAnnotatedClassAndSuperAttributes_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithAnnotatedClassAndSuperAttributes$SubModelWithAnnotatedClassAndSuperAttributes_ id( @Nullable Number... arg0) { super.id(arg0); return this; }
Example #26
Source File: ModelViewSuperClassModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelViewSuperClassModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #27
Source File: RLayoutInViewModelAnnotationWorksViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public RLayoutInViewModelAnnotationWorksViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #28
Source File: ModelWithVarargsConstructors_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public ModelWithVarargsConstructors_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #29
Source File: BasicModelWithFinalAttribute_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public BasicModelWithFinalAttribute_ id(@Nullable Number... arg0) { super.id(arg0); return this; }
Example #30
Source File: OnVisibilityChangedViewModel_.java From epoxy with Apache License 2.0 | 4 votes |
@Override public OnVisibilityChangedViewModel_ id(@Nullable Number... arg0) { super.id(arg0); return this; }