Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 631 for _from (0.14 sec)

  1. guava-tests/test/com/google/common/base/ConverterTest.java

        Converter<String, String> composedConverter = converterA.andThen(reverseConverter);
        SerializableTester.reserializeAndAssert(composedConverter);
      }
    
      public void testSerialization_from() {
        Converter<String, String> dumb = Converter.from(toStringFunction(), toStringFunction());
        SerializableTester.reserializeAndAssert(dumb);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractService.java

          stoppingEvent(STARTING);
      private static final ListenerCallQueue.Event<Listener> STOPPING_FROM_RUNNING_EVENT =
          stoppingEvent(RUNNING);
    
      private static final ListenerCallQueue.Event<Listener> TERMINATED_FROM_NEW_EVENT =
          terminatedEvent(NEW);
      private static final ListenerCallQueue.Event<Listener> TERMINATED_FROM_STARTING_EVENT =
          terminatedEvent(STARTING);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

    import static com.google.common.graph.GraphConstants.ENDPOINTS_MISMATCH;
    import static com.google.common.graph.GraphConstants.NODE_PAIR_REMOVED_FROM_GRAPH;
    import static com.google.common.graph.GraphConstants.NODE_REMOVED_FROM_GRAPH;
    
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Sets;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

       * environment that forces Futures.getChecked to its fallback WeakSetValidator. One awful way of
       * doing so would be to derive a separate test library by using remove_from_jar to strip out
       * ClassValueValidator.
       *
       * Fortunately, we get pretty good coverage "by accident": We run all these tests against the
       * *backport*, where ClassValueValidator is not present.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Quantiles.java

       */
      private static void movePivotToStartOfSlice(double[] array, int from, int to) {
        int mid = (from + to) >>> 1;
        // We want to make a swap such that either array[to] <= array[from] <= array[mid], or
        // array[mid] <= array[from] <= array[to]. We know that from < to, so we know mid < to
        // (although it's possible that mid == from, if to == from + 1). Note that the postcondition
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

        assertEquals("google.com", InternetDomainName.from("www.google.com").parent().toString());
    
        try {
          InternetDomainName.from("com").parent();
          fail("'com' should throw ISE on .parent() call");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testChild() {
        InternetDomainName domain = InternetDomainName.from("foo.com");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

      public void testFromFluentFuture() {
        FluentFuture<String> f = FluentFuture.from(SettableFuture.<String>create());
        assertThat(FluentFuture.from(f)).isSameInstanceAs(f);
      }
    
      public void testFromFluentFuturePassingAsNonFluent() {
        ListenableFuture<String> f = FluentFuture.from(SettableFuture.<String>create());
        assertThat(FluentFuture.from(f)).isSameInstanceAs(f);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/CaseFormatTest.java

    public class CaseFormatTest extends TestCase {
    
      public void testIdentity() {
        for (CaseFormat from : CaseFormat.values()) {
          assertSame(from + " to " + from, "foo", from.to(from, "foo"));
          for (CaseFormat to : CaseFormat.values()) {
            assertEquals(from + " to " + to, "", from.to(to, ""));
            assertEquals(from + " to " + to, " ", from.to(to, " "));
          }
        }
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * @since 28.0
       */
      @Deprecated
      public static <V extends @Nullable Object> FluentFuture<V> from(FluentFuture<V> future) {
        return checkNotNull(future);
      }
    
      /**
       * Returns a {@code Future} whose result is taken from this {@code Future} or, if this {@code
       * Future} fails with the given {@code exceptionType}, from the result provided by the {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

            }
          }
          assertNotSame(from, service.state());
        }
    
        @Override
        public synchronized void terminated(State from) {
          assertEquals(from, Iterables.getLast(stateHistory, State.NEW));
          stateHistory.add(State.TERMINATED);
          assertEquals(State.TERMINATED, service.state());
          if (from == State.NEW) {
            try {
              service.awaitRunning();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
Back to top