Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 1,884 for just (0.03 sec)

  1. android/guava/src/com/google/common/collect/MoreCollectors.java

        return (Collector) ONLY_ELEMENT;
      }
    
      /**
       * This atrocity is here to let us report several of the elements in the stream if there were more
       * than one, not just two.
       */
      private static final class ToOptionalState {
        static final int MAX_EXTRAS = 4;
    
        @CheckForNull Object element;
        List<Object> extras;
    
        ToOptionalState() {
          element = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/index.md

    But you should first read the **Tutorial - User Guide** (what you are reading right now).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 24 21:52:09 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Files.java

        }
      }
    
      /**
       * Moves a file from one path to another. This method can rename a file and/or move it to a
       * different directory. In either case {@code to} must be the target path for the file itself; not
       * just the new name for the file or the path to the new parent directory.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link java.nio.file.Files#move}.
       *
       * @param from the source file
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

            .putShort((short) 0x0100)
            .putShort((short) 0x0000)
            .putShort((short) 0x0000);
        assertEquals(hashCode, hasher.hash().asLong());
      }
    
      public void testHashFloatIsStable() {
        // Just a spot check.  Better than nothing.
        Hasher hasher = HASH_FN.newHasher();
        hasher.putFloat(0x01000101f).putFloat(0f);
        assertEquals(0x49f9d18ee8ae1b28L, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

       * process it; all should produce the same answer, the only difference should be the number of
       * process()/processRemaining() invocations, due to alignment.
       */
      @AndroidIncompatible // slow. TODO(cpovirk): Maybe just reduce iterations under Android.
      public void testExhaustive() throws Exception {
        Random random = new Random(0); // will iteratively make more debuggable, each time it breaks
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

          }
        }
    
        // Test _all_ allowed characters (including surrogate values).
        for (char ch = 0x20; ch <= 0xFFFD; ch++) {
          // There are a small number of cases to consider, so just do it manually.
          if (ch == '&') {
            assertEscaping(xmlEscaper, "&amp;", ch);
          } else if (ch == '<') {
            assertEscaping(xmlEscaper, "&lt;", ch);
          } else if (ch == '>') {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      /**
       * Returns an immutable array containing the given values, in order.
       *
       * <p>The array {@code rest} must not be longer than {@code Integer.MAX_VALUE - 1}.
       */
      // Use (first, rest) so that `of(someIntArray)` won't compile (they should use copyOf), which is
      // okay since we have to copy the just-created array anyway.
      public static ImmutableIntArray of(int first, int... rest) {
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        // 150 milliseconds. so in a perfect world the timing would be 353-150=203ms, but since either
        // of our sleep calls can be arbitrarily delayed we should just assert that there is a time
        // recorded.
        assertThat(startupTimes.get(b)).isNotNull();
      }
    
      public void testServiceStartStop() {
        Service a = new NoOpService();
        Service b = new NoOpService();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Ordering.java

      }
    
      // Static factories
    
      /**
       * Returns an ordering based on an <i>existing</i> comparator instance. Note that it is
       * unnecessary to create a <i>new</i> anonymous inner class implementing {@code Comparator} just
       * to pass it in here. Instead, simply subclass {@code Ordering} and implement its {@code compare}
       * method directly.
       *
       * <p>The returned object is serializable if {@code comparator} is serializable.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                            // delete the local copy so the old details aren't used.
                            if (file.exists()) {
                                if (!file.delete()) {
                                    // sleep for 10ms just in case this is windows holding a file lock
                                    try {
                                        Thread.sleep(10);
                                    } catch (InterruptedException ie) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top