Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 824 for from (0.2 sec)

  1. 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)
  2. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

            int midIndex = (from + to) >>> 1;
            // Choose the median of the elements at the from, to and mid indexes,
            // and rearrange so that array[from]<=array[from+1], and
            // array[to] => array[from + 1].
    
            swap(array, midIndex, from + 1);
    
            if (array[from] > array[to]) {
              swap(array, from, to);
            }
            if (array[from + 1] > array[to]) {
              swap(array, from + 1, to);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

            int midIndex = (from + to) >>> 1;
            // Choose the median of the elements at the from, to and mid indexes,
            // and rearrange so that array[from]<=array[from+1], and
            // array[to] => array[from + 1].
    
            swap(array, midIndex, from + 1);
    
            if (array[from] > array[to]) {
              swap(array, from, to);
            }
            if (array[from + 1] > array[to]) {
              swap(array, from + 1, to);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  4. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  5. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/Multimap.java

     * removeAll} methods, which contain values that have just been removed from the multimap, are
     * naturally <i>not</i> views.
     *
     * <h3>Subinterfaces</h3>
     *
     * <p>Instead of using the {@code Multimap} interface directly, prefer the subinterfaces {@link
     * ListMultimap} and {@link SetMultimap}. These take their names from the fact that the collections
     * they return from {@code get} behave like (and, of course, implement) {@link List} and {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/collect/Iterables.java

        // implementation.
        int from = 0;
        int to = 0;
    
        for (; from < list.size(); from++) {
          T element = list.get(from);
          if (!predicate.apply(element)) {
            if (from > to) {
              try {
                list.set(to, element);
              } catch (UnsupportedOperationException e) {
                slowRemoveIfForRemainingElements(list, predicate, to, from);
                return true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
Back to top