Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for item1 (0.2 sec)

  1. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        try {
          equalsTester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(
              e,
              equalObject1
                  + " [group 1, item 1] must be Object#equals to "
                  + notEqualObject1
                  + " [group 1, item 2]");
          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

                slowRemoveIfForRemainingElements(list, predicate, to, from);
                return true;
              }
            }
            to++;
          }
        }
    
        // Clear the tail of any remaining items
        list.subList(to, list.size()).clear();
        return from != to;
      }
    
      private static <T extends @Nullable Object> void slowRemoveIfForRemainingElements(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

     *
     * <p>Advantages compared to {@code int[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
     *       #toString} behavior you expect
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

     *
     * <p>Advantages compared to {@code double[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
     *       #toString} behavior you expect.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        // This tests that it.remove() above actually changed the order. It
        // indicates that the value 40 was stored in forgetMeNot, so it is
        // returned in the last call to it.next(). Without it, 30 should be the last
        // item returned by the iterator.
        Integer lastItem = 0;
        for (Integer tmp : mmHeap) {
          lastItem = tmp;
        }
        assertEquals((Integer) 30, lastItem);
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Lists.java

       * list is a transformed view of {@code fromList}; changes to {@code fromList} will be reflected
       * in the returned list and vice versa.
       *
       * <p>Since functions are not reversible, the transform is one-way and new items cannot be stored
       * in the returned list. The {@code add}, {@code addAll} and {@code set} methods are unsupported
       * in the returned list.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        // Each group is a List of items, each item has a list of factory args.
        final List<List<List<Object>>> argGroups = Lists.newArrayList();
        argGroups.add(ImmutableList.of(args, equalArgs));
        EqualsTester tester =
            new EqualsTester(
                new ItemReporter() {
                  @Override
                  String reportItem(Item<?> item) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       */
      private E extract() {
        final E[] items = this.items;
        E x = items[takeIndex];
        items[takeIndex] = null;
        takeIndex = inc(takeIndex);
        --count;
        return x;
      }
    
      /**
       * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying
       * monitor.
       */
      void removeAt(int i) {
        final E[] items = this.items;
        // if removing front item, just advance
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/CacheStats.java

       * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs
       * as a result of a refresh or if the cache loader returned more items than was requested. {@code
       * missCount} may also be incremented not in conjunction with this (nor {@link
       * #loadExceptionCount}) on calls to {@code getIfPresent}.
       */
      public long loadSuccessCount() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/CacheStats.java

       * operation. This may be incremented not in conjunction with {@code missCount} if the load occurs
       * as a result of a refresh or if the cache loader returned more items than was requested. {@code
       * missCount} may also be incremented not in conjunction with this (nor {@link
       * #loadExceptionCount}) on calls to {@code getIfPresent}.
       */
      public long loadSuccessCount() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 12.6K bytes
    - Viewed (0)
Back to top