Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 542 for from (0.14 sec)

  1. guava-tests/test/com/google/common/collect/StreamsTest.java

      public void testConcat_refStream_closeIsPropagated_exceptionsChained() {
        RuntimeException exception1 = new IllegalArgumentException("exception from stream 1");
        RuntimeException exception2 = new IllegalStateException("exception from stream 2");
        RuntimeException exception3 = new ArithmeticException("exception from stream 3");
        Stream<String> stream1 = Stream.of("foo", "bar").onClose(doThrow(exception1));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        assertThrows(IllegalArgumentException.class, () -> moveHelper(false, asciiFile, asciiFile));
      }
    
      private void moveHelper(boolean success, File from, File to) throws IOException {
        try {
          Files.move(from, to);
          if (success) {
            assertFalse(from.exists());
            assertTrue(to.exists());
          } else {
            fail("expected exception");
          }
        } catch (IOException possiblyExpected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        UnsignedBytes.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(byte[] input, int from, int to, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedBytes.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
      public void testSortIndexed() {
        testSort(new byte[] {}, 0, 0, new byte[] {});
    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)
  4. android/guava/src/com/google/common/primitives/Floats.java

      }
    
      /**
       * Returns the values from each provided array combined into a single array. For example, {@code
       * concat(new float[] {a, b}, new float[] {}, new float[] {c}} returns the array {@code {a, b,
       * c}}.
       *
       * @param arrays zero or more {@code float} arrays
       * @return a single array containing all the values from the source arrays, in order
       */
    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)
  5. android/guava/src/com/google/common/math/IntMath.java

     * named analogously to their {@code BigInteger} counterparts.
     *
     * <p>The implementations of many methods in this class are based on material from Henry S. Warren,
     * Jr.'s <i>Hacker's Delight</i>, (Addison Wesley, 2002).
     *
     * <p>Similar functionality for {@code long} and for {@link BigInteger} can be found in {@link
    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)
  6. maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java

            this.metadataReader = metadataReader;
        }
    
        public PluginPrefixResult resolve(PluginPrefixRequest request) throws NoPluginFoundForPrefixException {
            logger.debug("Resolving plugin prefix {} from {}", request.getPrefix(), request.getPluginGroups());
    
            PluginPrefixResult result = resolveFromProject(request);
    
            if (result == null) {
                result = resolveFromRepository(request);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/MathTesting.java

      /* Helper function to make a Long value from an Integer. */
      private static final Function<Integer, Long> TO_LONG =
          new Function<Integer, Long>() {
            @Override
            public Long apply(Integer n) {
              return Long.valueOf(n);
            }
          };
    
      /* Helper function to make a BigInteger value from a Long. */
      private static final Function<Long, BigInteger> TO_BIGINTEGER =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
      private static final SecretKey SHA512_KEY =
          new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
    
      // From http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac
      private static final ImmutableTable<String, SecretKey, HashFunction> ALGORITHMS =
          new ImmutableTable.Builder<String, SecretKey, HashFunction>()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

                return current;
              }
            }
            // If we're still here, there was a race, so just try again.
          }
        }
    
        /**
         * Removes a number of occurrences of the specified element from this multiset. If the multiset
         * contains fewer than this number of occurrences to begin with, all occurrences will be
         * removed.
         *
         * @param element the element whose occurrences should be removed
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

        return copyOf(comparator, (Iterable<? extends E>) elements);
      }
    
      /**
       * Returns an immutable sorted set containing the elements of a sorted set, sorted by the same
       * {@code Comparator}. That behavior differs from {@link #copyOf(Iterable)}, which always uses the
       * natural ordering of the elements.
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
Back to top