Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for specs (0.15 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

           *
           * Android API level 26 and JVM8 both let our Error propagate directly the first time and
           * throw NoClassDefFoundError thereafter. This is the proper behavior according to the spec.
           * See https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.4.2 (steps #11 and
           * #5).
           *
           * Note that that "first time" might happen in a test other than
           * testLexicographicalComparatorChoice!
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LongMath.java

       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
       * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3">
       *     Remainder Operator</a>
       */
      @GwtIncompatible // TODO
      public static int mod(long x, int m) {
        // Cast is safe because the result is guaranteed in the range [0, m)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

           *
           * Android API level 26 and JVM8 both let our Error propagate directly the first time and
           * throw NoClassDefFoundError thereafter. This is the proper behavior according to the spec.
           * See https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.4.2 (steps #11 and
           * #5).
           *
           * Note that that "first time" might happen in a test other than
           * testLexicographicalComparatorChoice!
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/PreconditionsTest.java

      // but essentially each line will be a call to a Preconditions method that, but for a documented
      // change would be a compiler error.
      // See http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2 for the spec on
      // how javac selects overloads
      @SuppressWarnings("null")
      public void overloadSelection() {
        Boolean boxedBoolean = null;
        boolean aBoolean = true;
        Long boxedLong = null;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

      // but essentially each line will be a call to a Preconditions method that, but for a documented
      // change would be a compiler error.
      // See http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2 for the spec on
      // how javac selects overloads
      @SuppressWarnings("null")
      public void overloadSelection() {
        Boolean boxedBoolean = null;
        boolean aBoolean = true;
        Long boxedLong = null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Doubles.java

          // extensive testing
          try {
            return Double.parseDouble(string);
          } catch (NumberFormatException e) {
            // Double.parseDouble has changed specs several times, so fall through
            // gracefully
          }
        }
        return null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Floats.java

          // extensive testing
          try {
            return Float.parseFloat(string);
          } catch (NumberFormatException e) {
            // Float.parseFloat has changed specs several times, so fall through
            // gracefully
          }
        }
        return null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/IntMath.java

       * mod(-7, 4) == 1
       * mod(-1, 4) == 3
       * mod(-8, 4) == 0
       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
       * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3">
       *     Remainder Operator</a>
       */
      public static int mod(int x, int m) {
        if (m <= 0) {
          throw new ArithmeticException("Modulus " + m + " must be > 0");
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        // Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX,
        // inclusive.
        //
        // Note: According to the spec, a NumberFormatException is thrown for a number that is not
        // parseable, but the spec doesn't seem to say which exception is thrown for an invalid radix.
        // In contrast to the JVM, Kotlin native throws an Illegal argument exception in this case
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/OptionalTest.java

      public void testFromNullable() {
        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
      public void testFromNullable_null() {
        // not promised by spec, but easier to test
        assertSame(Optional.absent(), Optional.fromNullable(null));
      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top