Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for tree (0.13 sec)

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

        Iterator<String> iterator = asList("one", "two", "three", "four", "five").iterator();
        try {
          Iterators.getOnlyElement(iterator);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("expected one element but was: <one, two, three, four, five>");
        }
      }
    
    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. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0 (implements {@code NavigableMap} since 12.0)
     */
    @GwtCompatible(serializable = true, emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class ImmutableSortedMap<K, V> extends ImmutableMap<K, V>
        implements NavigableMap<K, V> {
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

        ensureNotDirectlyModifiable(unmod.headSet(2));
        ensureNotDirectlyModifiable(unmod.headSet(2, true));
        ensureNotDirectlyModifiable(unmod.tailSet(2));
        ensureNotDirectlyModifiable(unmod.tailSet(2, true));
        ensureNotDirectlyModifiable(unmod.subSet(1, 3));
        ensureNotDirectlyModifiable(unmod.subSet(1, true, 3, true));
    
        /* UnsupportedOperationException on indirect modifications. */
    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)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals("one", map.floorKey("r"));
        assertEquals("three", map.floorKey("three"));
    
        assertThat(map.descendingMap().entrySet())
            .containsExactly(mapEntry("two", 3), mapEntry("three", 5), mapEntry("one", 3))
            .inOrder();
        assertEquals(map.headMap("three", true), map.descendingMap().tailMap("three", true));
        assertThat(map.tailMap("three", false).entrySet()).contains(mapEntry("two", 3));
    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)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals("one", map.floorKey("r"));
        assertEquals("three", map.floorKey("three"));
    
        assertThat(map.descendingMap().entrySet())
            .containsExactly(mapEntry("two", 3), mapEntry("three", 5), mapEntry("one", 3))
            .inOrder();
        assertEquals(map.headMap("three", true), map.descendingMap().tailMap("three", true));
        assertThat(map.tailMap("three", false).entrySet()).contains(mapEntry("two", 3));
    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)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

                          : Cancellation.CAUSELESS_CANCELLED);
          AbstractFuture<?> abstractFuture = this;
          while (true) {
            if (ATOMIC_HELPER.casValue(abstractFuture, localValue, valueToSet)) {
              rValue = true;
              complete(abstractFuture, mayInterruptIfRunning);
              if (localValue instanceof SetFuture) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0 (implements {@code NavigableMap} since 12.0)
     */
    @GwtCompatible(serializable = true, emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class ImmutableSortedMap<K, V> extends ImmutableMap<K, V>
        implements NavigableMap<K, V> {
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Synchronized.java

          return subMap(fromKey, true, toKey, false);
        }
    
        @Override
        public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive) {
          synchronized (mutex) {
            return navigableMap(delegate().tailMap(fromKey, inclusive), mutex);
          }
        }
    
        @Override
        public SortedMap<K, V> tailMap(K fromKey) {
          return tailMap(fromKey, true);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/CharMatcher.java

    import java.util.Arrays;
    import java.util.BitSet;
    
    /**
     * Determines a true or false value for any Java {@code char} value, just as {@link Predicate} does
     * for any {@link Object}. Also offers basic text processing methods based on this function.
     * Implementations are strongly encouraged to be side-effect-free and immutable.
     *
     * <p>Throughout the documentation of this class, the phrase "matching character" is used to mean
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

              newCount = this.count - 1;
              table.set(index, newFirst);
              this.count = newCount; // write-volatile
              return true;
            }
          }
    
          return false;
        }
    
        /**
         * Returns {@code true} if the value has been partially collected, meaning that the value is
         * null.
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
Back to top