Search Options

Results per page
Sort
Preferred Languages
Advance

Results 631 - 640 of 808 for ones (0.02 sec)

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

      public void testExplicit_withDuplicates() {
        assertThrows(IllegalArgumentException.class, () -> Ordering.explicit(1, 2, 3, 4, 2));
      }
    
      // A more limited test than the one that follows, but this one uses the
      // actual public API.
      @J2ktIncompatible // Ordering.arbitrary
      public void testArbitrary_withoutCollisions() {
        List<Object> list = new ArrayList<>();
        for (int i = 0; i < 50; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

      public void testExplicit_withDuplicates() {
        assertThrows(IllegalArgumentException.class, () -> Ordering.explicit(1, 2, 3, 4, 2));
      }
    
      // A more limited test than the one that follows, but this one uses the
      // actual public API.
      @J2ktIncompatible // Ordering.arbitrary
      public void testArbitrary_withoutCollisions() {
        List<Object> list = new ArrayList<>();
        for (int i = 0; i < 50; i++) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Files.java

       * @throws IOException if an I/O error occurs
       */
      public static void copy(File from, OutputStream to) throws IOException {
        asByteSource(from).copyTo(to);
      }
    
      /**
       * Copies all the bytes from one file to another.
       *
       * <p>Copying is not an atomic operation - in the case of an I/O error, power loss, process
       * termination, or other problems, {@code to} may not be a complete copy of {@code from}. If you
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Iterators.java

             * element anymore. Otherwise, when we remove from the old iterator, we may be invalidating
             * the new one. The result is a ConcurrentModificationException or other bad behavior.
             *
             * (If we decide that we really, really hate allocating two Iterators per cycle instead of
             * one, we can optimistically store the new Iterator and then be willing to throw it out if
             * the user calls remove().)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 12:42:11 UTC 2025
    - 51.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

        // share access specified in SmbFile
    
        // create disposition
    
        /*
         * Creates a new file or supersedes the existing one
         */
    
        static final int FILE_SUPERSEDE = 0x0;
    
        /*
         * Open the file or fail if it does not exist
         * aka OPEN_EXISTING
         */
    
        static final int FILE_OPEN = 0x1;
    
        /*
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbConstantsTest.java

                    SmbConstants.TYPE_NAMED_PIPE, SmbConstants.TYPE_PRINTER, SmbConstants.TYPE_COMM };
    
            for (int type : types) {
                // Check if it's a power of 2 (has exactly one bit set)
                assertTrue(type > 0 && (type & (type - 1)) == 0, "Resource type " + type + " should be a power of 2");
            }
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                  }
                })
            .named("singletonList")
            .withFeatures(
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
                CollectionSize.ONE)
            .suppressing(suppressForSingletonList())
            .createTestSuite();
      }
    
      public Test testsForArraysAsList() {
        return ListTestSuiteBuilder.using(
                new TestStringListGenerator() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

          classes.add(descendant);
          descendant = descendant.getSuperclass();
        }
    
        return classes;
      }
    
      /**
       * Not really a signature -- just the parts that affect whether one method is a fauxveride of a
       * method from an ancestor class.
       *
       * <p>See JLS 8.4.2 for the definition of the related "override-equivalent."
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                  public Multiset apply(Multiset delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        Multiset<String> set1 = ImmutableMultiset.of("one");
        Multiset<String> set2 = ImmutableMultiset.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

      protected abstract HashCode makeHash();
    
      // Process pent-up data in chunks
      private void munchIfFull() {
        if (buffer.remaining() < 8) {
          // buffer is full; not enough room for a primitive. We have at least one full chunk.
          munch();
        }
      }
    
      private void munch() {
        Java8Compatibility.flip(buffer);
        while (buffer.remaining() >= chunkSize) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top