Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Type | Name and description |
---|---|
static boolean |
isDigit(char c) Returns true if the specified character is a base-10 digit. |
static boolean |
isHexDigit(char c) Returns true if the specified character is a base-16 digit. |
static boolean |
isNumericTypeSpecifier(char c, boolean isDecimal) Returns true if the specified character is a valid type specifier for a numeric value. |
static boolean |
isOctalDigit(char c) Returns true if the specific character is a base-8 digit. |
static Number |
parseDecimal(String text) Builds a Number from the given decimal descriptor. |
static Number |
parseInteger(String text) Builds a Number from the given integer descriptor. |
Returns true if the specified character is a base-10 digit.
Returns true if the specified character is a base-16 digit.
Returns true if the specified character is a valid type specifier for a numeric value.
Returns true if the specific character is a base-8 digit.
Builds a Number from the given decimal descriptor. Uses BigDecimal, unless, Double or Float is requested.
text
- literal text to parseBuilds a Number from the given integer descriptor. Creates the narrowest type possible, or a specific type, if specified.
text
- literal text to parse