Home | History | Annotate | Download | only in util

Lines Matching refs:radix

93     // Default radix.
628 * {@code BigInteger} in the default radix.
641 * {@code BigInteger} in the specified radix.
643 * @param radix
644 * the radix used to translate the token into a
651 public boolean hasNextBigInteger(int radix) {
652 Pattern integerPattern = getIntegerPattern(radix);
658 cacheHasNextValue = new BigInteger(intString, radix);
682 * {@code byte} value in the default radix.
695 * {@code byte} value in the specified radix.
697 * @param radix
698 * the radix used to translate the token into a {@code byte}
705 public boolean hasNextByte(int radix) {
706 Pattern integerPattern = getIntegerPattern(radix);
712 cacheHasNextValue = Byte.valueOf(intString, radix);
773 * value in the default radix.
786 * value in the specified radix.
788 * @param radix
789 * the radix used to translate the token into an {@code int}
797 public boolean hasNextInt(int radix) {
798 Pattern integerPattern = getIntegerPattern(radix);
804 cacheHasNextValue = Integer.valueOf(intString, radix);
851 * {@code long} value in the default radix.
864 * {@code long} value in the specified radix.
866 * @param radix
867 * the radix used to translate the token into a {@code long}
874 public boolean hasNextLong(int radix) {
875 Pattern integerPattern = getIntegerPattern(radix);
881 cacheHasNextValue = Long.valueOf(intString, radix);
892 * {@code short} value in the default radix.
905 * {@code short} value in the specified radix.
907 * @param radix
908 * the radix used to translate the token into a {@code short}
915 public boolean hasNextShort(int radix) {
916 Pattern integerPattern = getIntegerPattern(radix);
922 cacheHasNextValue = Short.valueOf(intString, radix);
1099 * Returns the next token as a {@code BigInteger} with the specified radix.
1107 * with the specified radix.
1109 * @param radix
1110 * the radix used to translate the token into a
1121 public BigInteger nextBigInteger(int radix) {
1129 Pattern integerPattern = getIntegerPattern(radix);
1134 bigIntegerValue = new BigInteger(intString, radix);
1178 * Returns the next token as a {@code byte} with the specified radix. Will
1186 * the specified radix.
1188 * @param radix
1189 * the radix used to translate the token into {@code byte} value.
1200 public byte nextByte(int radix) {
1208 Pattern integerPattern = getIntegerPattern(radix);
1213 byteValue = Byte.parseByte(intString, radix);
1328 * Returns the next token as an {@code int} with the specified radix. This method will
1336 * the specified radix.
1338 * @param radix
1339 * the radix used to translate the token into an {@code int}
1351 public int nextInt(int radix) {
1359 Pattern integerPattern = getIntegerPattern(radix);
1364 intValue = Integer.parseInt(intString, radix);
1440 * Returns the next token as a {@code long} with the specified radix. This method will
1448 * the specified radix.
1450 * @param radix
1451 * the radix used to translate the token into a {@code long}
1463 public long nextLong(int radix) {
1471 Pattern integerPattern = getIntegerPattern(radix);
1476 longValue = Long.parseLong(intString, radix);
1503 * Returns the next token as a {@code short} with the specified radix. This method will
1511 * with the specified radix.
1513 * @param radix
1514 * the radix used to translate the token into {@code short}
1526 public short nextShort(int radix) {
1534 Pattern integerPattern = getIntegerPattern(radix);
1539 shortValue = Short.parseShort(intString, radix);
1549 * Return the radix of this {@code Scanner}.
1551 * @return the radix of this {@code Scanner}
1553 public int radix() {
1674 * Sets the radix of this {@code Scanner} to the specified radix.
1676 * @param radix
1677 * the specified radix to use.
1680 public Scanner useRadix(int radix) {
1681 checkRadix(radix);
1682 this.integerRadix = radix;
1686 private void checkRadix(int radix) {
1687 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
1688 throw new IllegalArgumentException("Invalid radix: " + radix);
1760 private Pattern getIntegerPattern(int radix) {
1761 checkRadix(radix);
1765 String ASCIIDigit = allAvailableDigits.substring(0, radix);
1766 String nonZeroASCIIDigit = allAvailableDigits.substring(1, radix);
2177 * Resets this scanner's delimiter, locale, and radix.