Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 197 for elseif (0.15 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java

      }
    
      private class ComposeFunction implements Function<Integer, String> {
        @Override
        public String apply(Integer input) {
          if (input.intValue() == VALID_INPUT_DATA) {
            return RESULT_DATA;
          } else {
            throw WRAPPED_EXCEPTION;
          }
        }
      }
    
      public void testFutureGetThrowsFunctionException() throws Exception {
        inputFuture.set(EXCEPTION_DATA);
        listener.assertException(WRAPPED_EXCEPTION);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 28 16:27:15 GMT 2018
    - 1.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

              for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
                Integer expectedValue = null;
                if (range1.contains(i)) {
                  expectedValue = 1;
                } else if (range2.contains(i)) {
                  expectedValue = 2;
                }
    
                assertEquals(expectedValue, rangeMap.get(i));
              }
            }
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CollectPreconditions.java

    @ElementTypesAreNonnullByDefault
    final class CollectPreconditions {
    
      static void checkEntryNotNull(Object key, Object value) {
        if (key == null) {
          throw new NullPointerException("null key in entry: null=" + value);
        } else if (value == null) {
          throw new NullPointerException("null value in entry: " + key + "=null");
        }
      }
    
      @CanIgnoreReturnValue
      static int checkNonnegative(int value, String name) {
        if (value < 0) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Jun 30 10:33:07 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/TearDownStack.java

          try {
            tearDown.tearDown();
          } catch (Throwable t) {
            if (suppressThrows) {
              logger.log(Level.INFO, "exception thrown during tearDown", t);
            } else {
              exceptions.add(t);
            }
          }
        }
        if (!suppressThrows && (exceptions.size() > 0)) {
          throw ClusterException.create(exceptions);
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CollectPreconditions.java

    @ElementTypesAreNonnullByDefault
    final class CollectPreconditions {
    
      static void checkEntryNotNull(Object key, Object value) {
        if (key == null) {
          throw new NullPointerException("null key in entry: null=" + value);
        } else if (value == null) {
          throw new NullPointerException("null value in entry: " + key + "=null");
        }
      }
    
      @CanIgnoreReturnValue
      static int checkNonnegative(int value, String name) {
        if (value < 0) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Jun 30 10:33:07 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/EndpointPair.java

       */
      public final N adjacentNode(N node) {
        if (node.equals(nodeU)) {
          return nodeV;
        } else if (node.equals(nodeV)) {
          return nodeU;
        } else {
          throw new IllegalArgumentException("EndpointPair " + this + " does not contain node " + node);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 8.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

          // This line doesn't hold - see the Javadoc comments above.
          // assertEquals(expectedValue, oldValue);
          assertFalse(map.containsKey(keyToRemove));
          assertEquals(initialSize - 1, map.size());
        } else {
          try {
            map.remove(keyToRemove);
            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
        assertInvariants(map);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

        Throwable wrapper = e.getCause();
        if (wrapper instanceof WrapperException) {
          Throwable cause = wrapper.getCause();
          if (cause instanceof RuntimeException) {
            throw (RuntimeException) cause;
          } else if (cause instanceof Error) {
            throw (Error) cause;
          }
        }
        throw e;
      }
    
      @Override
      public V get() throws ExecutionException, InterruptedException {
        try {
          super.get();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 12 20:02:10 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/AbstractByteHasher.java

      protected void update(ByteBuffer b) {
        if (b.hasArray()) {
          update(b.array(), b.arrayOffset() + b.position(), b.remaining());
          Java8Compatibility.position(b, b.limit());
        } else {
          for (int remaining = b.remaining(); remaining > 0; remaining--) {
            update(b.get());
          }
        }
      }
    
      /** Updates the sink with the given number of bytes from the buffer. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      }
    
      /** Previous version of BigIntegerMath.factorial, kept for timing purposes. */
      private static BigInteger oldSlowFactorial(int n) {
        if (n <= 20) {
          return BigInteger.valueOf(LongMath.factorial(n));
        } else {
          int k = 20;
          return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n));
        }
      }
    
      /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
Back to top