Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for toBigInteger (0.27 sec)

  1. src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java

         */
        public static BigInteger toBigInteger(final Object o) {
            return toBigInteger(o, null);
        }
    
        /**
         * {@link BigInteger}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link BigInteger}
         */
        public static BigInteger toBigInteger(final Object o, final String pattern) {
            if (o == null) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/BigIntegerConversionUtilTest.java

    public class BigIntegerConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToBigIntegerForEmptyString() throws Exception {
            assertNull(BigIntegerConversionUtil.toBigInteger(""));
        }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 960 bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      private static final BigDecimal MIN_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MIN_VALUE);
    
      public void testConstantsMaxFactorial() {
        BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger();
        assertTrue(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL).compareTo(maxDoubleValue) <= 0);
        assertTrue(
            BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1).compareTo(maxDoubleValue) > 0);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

            } else if (type == Short.class) {
                return ShortConversionUtil.toShort(o);
            } else if (type == BigInteger.class) {
                return BigIntegerConversionUtil.toBigInteger(o);
            } else if (type == Byte.class) {
                return ByteConversionUtil.toByte(o);
            }
            return o;
        }
    
        /**
         * 指定されたプリミティブ型に対応するラッパー型に変換して返します。
         *
         * @param type
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        InetAddress address = InetAddresses.forString(ip);
        boolean isIpv6 = address instanceof Inet6Address;
        assertEquals(bigIntegerIp, InetAddresses.toBigInteger(address));
        assertEquals(
            address,
            isIpv6
                ? InetAddresses.fromIPv6BigInteger(bigIntegerIp)
                : InetAddresses.fromIPv4BigInteger(bigIntegerIp));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

       *
       * @param address {@link InetAddress} to convert
       * @return {@code BigInteger} representation of the address
       * @since 28.2
       */
      public static BigInteger toBigInteger(InetAddress address) {
        return new BigInteger(1, address.getAddress());
      }
    
      /**
       * Returns an Inet4Address having the integer value specified by the argument.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/InetAddresses.java

       *
       * @param address {@link InetAddress} to convert
       * @return {@code BigInteger} representation of the address
       * @since 28.2
       */
      public static BigInteger toBigInteger(InetAddress address) {
        return new BigInteger(1, address.getAddress());
      }
    
      /**
       * Returns an Inet4Address having the integer value specified by the argument.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top