Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for has_value (0.6 sec)

  1. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        graph.putEdgeValue(1, 2, "A");
        assertThat(graph.edgeValue(EndpointPair.unordered(1, 2))).hasValue("A");
      }
    
      @Test
      public void edgeValue_undirected_backwards() {
        graph = ValueGraphBuilder.undirected().build();
        graph.putEdgeValue(1, 2, "A");
        assertThat(graph.edgeValue(EndpointPair.unordered(2, 1))).hasValue("A");
      }
    
      @Test
      public void edgeValue_undirected_mismatch() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/StreamsTest.java

        assertThat(findLast(Stream.of())).isEmpty();
        assertThat(findLast(Stream.of("a", "b", "c", "d"))).hasValue("d");
    
        // test with a large, not-subsized Spliterator
        List<Integer> list =
            IntStream.rangeClosed(0, 10000).boxed().collect(Collectors.toCollection(LinkedList::new));
        assertThat(findLast(list.stream())).hasValue(10000);
    
        // no way to find out the stream is empty without walking its spliterator
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<String> list = newArrayList("cool", "pants");
        assertThat(Iterables.tryFind(list, Predicates.equalTo("cool"))).hasValue("cool");
        assertThat(Iterables.tryFind(list, Predicates.equalTo("pants"))).hasValue("pants");
        assertThat(Iterables.tryFind(list, Predicates.alwaysTrue())).hasValue("cool");
        assertThat(Iterables.tryFind(list, Predicates.alwaysFalse())).isAbsent();
        assertCanIterateAgain(list);
      }
    
    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)
  4. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterable<String> list = newArrayList("cool", "pants");
        assertThat(Iterables.tryFind(list, Predicates.equalTo("cool"))).hasValue("cool");
        assertThat(Iterables.tryFind(list, Predicates.equalTo("pants"))).hasValue("pants");
        assertThat(Iterables.tryFind(list, Predicates.alwaysTrue())).hasValue("cool");
        assertThat(Iterables.tryFind(list, Predicates.alwaysFalse())).isAbsent();
        assertCanIterateAgain(list);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThat(Iterators.tryFind(iterator, Predicates.equalTo("cool"))).hasValue("cool");
      }
    
      public void testTryFind_lastElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertThat(Iterators.tryFind(iterator, Predicates.equalTo("pants"))).hasValue("pants");
      }
    
      public void testTryFind_alwaysTrue() {
    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. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          @SuppressWarnings("unchecked")
          K castKey = (K) key;
          @SuppressWarnings("unchecked") // similar to the above
          V castValue = (V) value;
    
          alertListenerIfPresent(castKey, castValue, RemovalCause.EXPLICIT);
          remove(key);
          return true;
        }
        return false;
      }
    
      @Override
      public boolean replace(K key, V oldValue, V newValue) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThat(Iterators.tryFind(iterator, Predicates.equalTo("cool"))).hasValue("cool");
      }
    
      public void testTryFind_lastElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertThat(Iterators.tryFind(iterator, Predicates.equalTo("pants"))).hasValue("pants");
      }
    
      public void testTryFind_alwaysTrue() {
    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)
Back to top