Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 74 for general (0.15 sec)

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

        assertTrue(partitions.hasNext());
        assertEquals(ImmutableList.of(1), partitions.next());
        assertFalse(partitions.hasNext());
      }
    
      @GwtIncompatible // fairly slow (~50s)
      public void testPartition_general() {
        new IteratorTester<List<Integer>>(
            5,
            IteratorFeature.UNMODIFIABLE,
            ImmutableList.of(asList(1, 2, 3), asList(4, 5, 6), asList(7)),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 0, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 1, 1, new boolean[] {true});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(
            new boolean[] {false, true, false, true, false, true, false},
            -6,
            1,
            6,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Types.java

        }
      }
    
      /** Returns the {@code Class} object of arrays with {@code componentType}. */
      static Class<?> getArrayClass(Class<?> componentType) {
        // TODO(user): This is not the most efficient way to handle generic
        // arrays, but is there another way to extract the array class in a
        // non-hacky way (i.e. using String value class names- "[L...")?
        return Array.newInstance(componentType, 0).getClass();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        testRotate(new boolean[] {true}, 0, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 0, 1, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, 1, 1, new boolean[] {true});
    
        // Rotate the central 5 elements, leaving the ends as-is
        testRotate(
            new boolean[] {false, true, false, true, false, true, false},
            -6,
            1,
            6,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 15:43:29 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Preconditions.java

     * similar to those in this class for non-precondition checks.
     *
     * <h3>{@code java.util.Objects.requireNonNull()}</h3>
     *
     * <p>Projects which use {@code com.google.common} should generally avoid the use of {@link
     * java.util.Objects#requireNonNull(Object)}. Instead, use whichever of {@link
     * #checkNotNull(Object)} or {@link Verify#verifyNotNull(Object)} is appropriate to the situation.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multimaps.java

       * is. The {@code equals} and {@code hashCode} methods of the returned multimap are meaningless,
       * since there is not a definition of {@code equals} or {@code hashCode} for general collections,
       * and {@code get()} will return a general {@code Collection} as opposed to a {@code List} or a
       * {@code Set}.
       *
       * <p>The function is applied lazily, invoked when needed. This is necessary for the returned
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedSet.java

            ImmutableList.<E>asImmutableList(contents, uniques), comparator);
      }
    
      /**
       * Returns a builder that creates immutable sorted sets with an explicit comparator. If the
       * comparator has a more general type than the set being generated, such as creating a {@code
       * SortedSet<Integer>} with a {@code Comparator<Number>}, use the {@link Builder} constructor
       * instead.
       *
    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)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

     * <p>For field types and method return types, you should generally use the immutable type (such as
     * {@link ImmutableList}) instead of the general collection interface type (such as {@link List}).
     * This communicates to your callers all of the semantic guarantees listed above, which is almost
     * always very useful information.
     *
     * <p>On the other hand, a <i>parameter</i> type of {@link ImmutableList} is generally a nuisance to
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  9. android/guava/src/com/google/common/base/Optional.java

       *
       * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code
       *     false}); depending on this <i>specific</i> exception type (over the more general {@link
       *     RuntimeException}) is discouraged
       */
      public abstract T get();
    
      /**
       * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

      //    the initial write (just stronger guarantees if it does).
      //
      // See: http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013800.html
      // For a (long) discussion about this specific issue and the general futility of life.
      //
      // For the time being we are OK with the problem discussed above since it requires a caller to
      // introduce a very specific kind of data-race. And given the other operations performed by these
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top