Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 63 for item (0.13 sec)

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

        Iterator<Entry<String, String>> iter = copy.entrySet().iterator();
        assertTrue(iter.hasNext());
        Entry<String, String> entry = iter.next();
        assertEquals("Hello", entry.getKey());
        assertEquals("World", entry.getValue());
        assertTrue(iter.hasNext());
    
        entry = iter.next();
        assertEquals("first", entry.getKey());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        List<Integer> result = Lists.newArrayListWithCapacity(initial.size());
        for (Iterator<Integer> iter = q.iterator(); iter.hasNext(); ) {
          Integer value = iter.next();
          result.add(value);
          if (value == 8) {
            iter.remove();
          }
        }
        assertIntact(q);
        assertThat(result).containsExactly(1, 15, 13, 8, 14);
      }
    
      /**
    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)
  3. guava/src/com/google/common/collect/FluentIterable.java

        checkNotNull(collection);
        Iterable<E> iterable = getDelegate();
        if (iterable instanceof Collection) {
          collection.addAll((Collection<E>) iterable);
        } else {
          for (E item : iterable) {
            collection.add(item);
          }
        }
        return collection;
      }
    
      /**
       * Returns a {@link String} containing all of the elements of this fluent iterable joined with
       * {@code joiner}.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Enumeration<Integer> enumer = enumerate(1, 2, 3);
        Iterator<Integer> iter = Iterators.forEnumeration(enumer);
    
        assertTrue(iter.hasNext());
        assertEquals(1, (int) iter.next());
        assertTrue(iter.hasNext());
        assertEquals(2, (int) iter.next());
        assertTrue(iter.hasNext());
        assertEquals(3, (int) iter.next());
        assertFalse(iter.hasNext());
      }
    
      public void testAsEnumerationEmpty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Splitter.java

              nextStart = offset;
              continue;
            }
    
            if (limit == 1) {
              // The limit has been reached, return the rest of the string as the
              // final item. This is tested after empty string removal so that
              // empty strings do not count towards the limit.
              end = toSplit.length();
              offset = -1;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

      private static final class TestObject {
        final int group;
        final int item;
    
        TestObject(int group, int item) {
          this.group = group;
          this.item = item;
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper("TestObject")
              .add("group", group)
              .add("item", item)
              .toString();
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

      private static final class TestObject {
        final int group;
        final int item;
    
        TestObject(int group, int item) {
          this.group = group;
          this.item = item;
        }
    
        @Override
        public String toString() {
          return MoreObjects.toStringHelper("TestObject")
              .add("group", group)
              .add("item", item)
              .toString();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

     *
     * <p>Advantages compared to {@code long[]}:
     *
     * <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)
  9. guava/src/com/google/common/base/Splitter.java

              nextStart = offset;
              continue;
            }
    
            if (limit == 1) {
              // The limit has been reached, return the rest of the string as the
              // final item. This is tested after empty string removal so that
              // empty strings do not count towards the limit.
              end = toSplit.length();
              offset = -1;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

          throw new UnsupportedOperationException();
        }
      }
    
      /**
       * Creates an index {@code ImmutableListMultimap} that contains the results of applying a
       * specified function to each item in an {@code Iterable} of values. Each value will be stored as
       * a value in the resulting multimap, yielding a multimap with the same size as the input
    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)
Back to top