Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Vector (0.03 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

            .createTestSuite();
      }
    
      // We are testing Vector / testing our tests on Vector.
      @SuppressWarnings("JdkObsolete")
      private Test testsForVector() {
        return ListTestSuiteBuilder.using(
                new TestStringListGenerator() {
                  @Override
                  protected List<String> create(String[] elements) {
                    return new Vector<>(MinimalCollection.of(elements));
                  }
                })
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        BaseEncoding separated = base64().withSeparator("\n", 3);
        assertThrows(UnsupportedOperationException.class, () -> separated.withSeparator("$", 4));
      }
    
      public void testBase64() {
        // The following test vectors are specified in RFC 4648 itself
        testEncodingWithSeparators(base64(), "", "");
        testEncodingWithSeparators(base64(), "f", "Zg==");
        testEncodingWithSeparators(base64(), "fo", "Zm8=");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        BaseEncoding separated = base64().withSeparator("\n", 3);
        assertThrows(UnsupportedOperationException.class, () -> separated.withSeparator("$", 4));
      }
    
      public void testBase64() {
        // The following test vectors are specified in RFC 4648 itself
        testEncodingWithSeparators(base64(), "", "");
        testEncodingWithSeparators(base64(), "f", "Zg==");
        testEncodingWithSeparators(base64(), "fo", "Zm8=");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        }
      }
    
      /**
       * Verifies that {@code ctor} produces a {@link NullPointerException} or {@link
       * UnsupportedOperationException} whenever <i>any</i> of its non-nullable parameters are null.
       */
      public void testConstructor(Constructor<?> ctor) {
        Class<?> declaringClass = ctor.getDeclaringClass();
        checkArgument(
            Modifier.isStatic(declaringClass.getModifiers())
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. docs/recipes.md

                for (i in 2..997) {
                  sink.writeUtf8(String.format(" * $i = ${factor(i)}\n"))
                }
              }
    
              private fun factor(n: Int): String {
                for (i in 2 until n) {
                  val x = n / i
                  if (x * i == n) return "${factor(x)} × $i"
                }
                return n.toString()
              }
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableMap.java

           *
           * The absent indicator of -1 signed becomes 2^8 - 1 unsigned, which reduces the actual max
           * size to 2^8 - 1. However, due to a load factor < 1 the limit is never approached.
           */
          byte[] hashTable = new byte[tableSize];
          Arrays.fill(hashTable, ABSENT);
    
          int outI = 0;
          entries:
          for (int i = 0; i < n; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/HttpHeaders.java

      /**
       * The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor">{@code
       * Sec-CH-UA-Form-Factor}</a> header field name.
       *
       * @deprecated Prefer {@link SEC_CH_UA_FORM_FACTORS}.
       * @since 32.0.0
       */
      @Deprecated public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 27 20:37:16 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

              // requireNonNull is safe because right must exist in order to get a negative factor.
              requireNonNull(right);
              if (right.balanceFactor() > 0) {
                right = right.rotateRight();
              }
              return rotateLeft();
            case 2:
              // requireNonNull is safe because left must exist in order to get a positive factor.
              requireNonNull(left);
              if (left.balanceFactor() < 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/eventbus/EventBus.java

     * href="https://github.com/ReactiveX/RxAndroid">RxAndroid</a> extension if you are building for
     * Android) or <a href="https://projectreactor.io/">Project Reactor</a>. (For the basics of
     * translating code from using an event bus to using a reactive-streams framework, see these two
     * guides: <a href="https://blog.jkl.gg/implementing-an-event-bus-with-rxjava-rxbus/">1</a>, <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSet.java

       * can hold setSize elements with the desired load factor. Always returns at least setSize + 2.
       */
      // TODO(cpovirk): Move to Hashing or something, since it's used elsewhere in the Android version.
      static int chooseTableSize(int setSize) {
        setSize = max(setSize, 2);
        // Correct the size for open addressing to match desired load factor.
        if (setSize < CUTOFF) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
Back to top