Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for items (0.18 sec)

  1. guava-testlib/src/com/google/common/testing/RelationshipTester.java

        Item<T> itemInfo = getItem(groupNumber, itemNumber);
        Item<T> relatedInfo = getItem(groupNumber, relatedItemNumber);
    
        T item = itemInfo.value;
        T related = relatedInfo.value;
        assertWithTemplate(
            "$ITEM must be $RELATIONSHIP to $OTHER",
            itemInfo,
            relatedInfo,
            equivalence.equivalent(item, related));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/EquivalenceTester.java

          assertEquals(
              "the hash of " + item + " must be consistent",
              equivalence.hash(item),
              equivalence.hash(item));
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

      private void testItems() {
        for (Object item : Iterables.concat(equalityGroups)) {
          assertTrue(item + " must not be Object#equals to null", !item.equals(null));
          assertTrue(
              item + " must not be Object#equals to an arbitrary object of another class",
              !item.equals(NotAnInstance.EQUAL_TO_NOTHING));
          assertTrue(item + " must be Object#equals to itself", item.equals(item));
          assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  7. 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)
  8. android/guava-tests/test/com/google/common/base/SplitterTest.java

        String simple = "a,b,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(1).split(simple);
        assertThat(items).containsExactly("a,b,c,d").inOrder();
      }
    
      public void testLimitSeparator() {
        String simple = "a,b,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(2).split(simple);
        assertThat(items).containsExactly("a", "b,c,d").inOrder();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testConsumingIterable_queue_iterator() {
        final List<Integer> items = ImmutableList.of(4, 8, 15, 16, 23, 42);
        new IteratorTester<Integer>(3, UNMODIFIABLE, items, IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterables.consumingIterable(Lists.newLinkedList(items)).iterator();
          }
        }.test();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/SplitterTest.java

        String simple = "a,b,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(1).split(simple);
        assertThat(items).containsExactly("a,b,c,d").inOrder();
      }
    
      public void testLimitSeparator() {
        String simple = "a,b,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(2).split(simple);
        assertThat(items).containsExactly("a", "b,c,d").inOrder();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
Back to top