Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for foo (0.12 sec)

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

      }
    
      public void testFilterSimple() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
        Iterator<String> filtered = Iterators.filter(unfiltered, Predicates.equalTo("foo"));
        List<String> expected = Collections.singletonList("foo");
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
      }
    
    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)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

        assertTrue(set.isEmpty());
        set.add(new Derived("foo"));
        set.add(new Derived("bar"));
        assertThat(set).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
      }
    
      public void testNewTreeSetEmptyNonGeneric() {
        TreeSet<LegacyComparable> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new LegacyComparable("foo"));
        set.add(new LegacyComparable("bar"));
        assertThat(set)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

      public void testImmutableEntry() {
        Entry<String, Integer> e = Maps.immutableEntry("foo", 1);
        assertEquals("foo", e.getKey());
        assertEquals(1, (int) e.getValue());
        try {
          e.setValue(2);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        assertEquals("foo=1", e.toString());
        assertEquals(101575, e.hashCode());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapsTest.java

      public void testImmutableEntry() {
        Entry<String, Integer> e = Maps.immutableEntry("foo", 1);
        assertEquals("foo", e.getKey());
        assertEquals(1, (int) e.getValue());
        try {
          e.setValue(2);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        assertEquals("foo=1", e.toString());
        assertEquals(101575, e.hashCode());
      }
    
    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)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testFilterSimple() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
        Iterator<String> filtered = Iterators.filter(unfiltered, Predicates.equalTo("foo"));
        List<String> expected = Collections.singletonList("foo");
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
      }
    
    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)
  6. android/guava/src/com/google/common/collect/Sets.java

       *   Iterator<E> it = set.iterator();
       *   while (it.hasNext()) {
       *     foo(it.next());
       *   }
       * }
       * }</pre>
       *
       * <p>or:
       *
       * <pre>{@code
       * NavigableSet<E> set = synchronizedNavigableSet(new TreeSet<E>());
       * NavigableSet<E> set2 = set.descendingSet().headSet(foo);
       *  ...
       * synchronized (set) { // Note: set, not set2!!!
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testMethod_declaredBySuperclass() throws Exception {
        Method toStringMethod = Object.class.getMethod("toString");
        ImmutableList<String> list = ImmutableList.of("foo");
        assertEquals(list.toString(), TypeToken.of(List.class).method(toStringMethod).invoke(list));
      }
    
      public <T extends Number & List<String>> void testMethod_returnType_resolvedAgainstTypeBound()
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Futures.java

         * LF<? extends @Nullable V>. That might be better: There's currently no difference between the
         * outputs users get when calling this with <Foo> and calling it with <@Nullable Foo>. The only
         * difference is that calling it with <Foo> won't work when an input Future has a @Nullable
         * type. So why even make that error possible by giving callers the choice?
         *
    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)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testMethod_declaredBySuperclass() throws Exception {
        Method toStringMethod = Object.class.getMethod("toString");
        ImmutableList<String> list = ImmutableList.of("foo");
        assertEquals(list.toString(), TypeToken.of(List.class).method(toStringMethod).invoke(list));
      }
    
      public <T extends Number & List<String>> void testMethod_returnType_resolvedAgainstTypeBound()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

       * ...
       * synchronized (multimap) {  // Synchronizing on multimap, not values!
       *   Iterator<V> i = values.iterator(); // Must be in synchronized block
       *   while (i.hasNext()) {
       *     foo(i.next());
       *   }
       * }
       * }</pre>
       *
       * <p>Failure to follow this advice may result in non-deterministic behavior.
       *
       * <p>Note that the generated multimap's {@link Multimap#removeAll} and {@link
    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