Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 75 for Op (0.3 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        executionThread.join();
    
        assertTrue(service.shutDownCalled);
        assertEquals(Service.State.TERMINATED, service.state());
    
        service.stopAsync().awaitTerminated(); // no-op
        assertEquals(Service.State.TERMINATED, service.state());
        assertTrue(service.shutDownCalled);
      }
    
      private class WaitOnRunService extends AbstractExecutionThreadService {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LongAdderTest.java

    import static com.google.common.truth.Truth.assertThat;
    
    import junit.framework.TestCase;
    
    /** Unit tests for {@link LongAdder}. */
    public class LongAdderTest extends TestCase {
    
      /**
       * No-op null-pointer test for {@link LongAdder} to override the {@link PackageSanityTests}
       * version, which checks package-private methods that we don't want to have to annotate as {@code
       * Nullable} because we don't want diffs from jsr166e.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jul 09 04:11:29 GMT 2019
    - 1.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RangeMap.java

       * Range#contains(Comparable) range.contains(k)}, then {@link #get(Comparable) get(k)} will return
       * {@code value}.
       *
       * <p>If {@code range} {@linkplain Range#isEmpty() is empty}, then this is a no-op.
       */
      void put(Range<K> range, V value);
    
      /**
       * Maps a range to a specified value, coalescing this range with any existing ranges with the same
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/IntMathTest.java

          return Integer.MIN_VALUE;
        }
        return big.intValue();
      }
    
      private void assertOperationEquals(int a, int b, String op, int expected, int actual) {
        if (expected != actual) {
          fail("Expected for " + a + " " + op + " " + b + " = " + expected + ", but got " + actual);
        }
      }
    
      // Depends on the correctness of BigIntegerMath.factorial.
      public void testFactorial() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        }
        builder.append(']');
        return builder.toString();
      }
    
      /**
       * Returns an immutable array containing the same values as {@code this} array. This is logically
       * a no-op, and in some circumstances {@code this} itself is returned. However, if this instance
       * is a {@link #subArray} view of a larger array, this method will copy only the appropriate range
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimap.java

       *
       * <pre>{@code
       * for (V value : values) {
       *   put(key, value);
       * }
       * }</pre>
       *
       * <p>In particular, this is a no-op if {@code values} is empty.
       *
       * @return {@code true} if the multimap changed
       */
      @CanIgnoreReturnValue
      boolean putAll(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Test
      public void removeEdge_antiparallelEdges() {
        assume().that(graphIsMutable()).isTrue();
    
        putEdge(N1, N2);
        putEdge(N2, N1); // no-op
    
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isTrue();
        assertThat(graph.adjacentNodes(N1)).isEmpty();
        assertThat(graph.edges()).isEmpty();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

        }
        builder.append(']');
        return builder.toString();
      }
    
      /**
       * Returns an immutable array containing the same values as {@code this} array. This is logically
       * a no-op, and in some circumstances {@code this} itself is returned. However, if this instance
       * is a {@link #subArray} view of a larger array, this method will copy only the appropriate range
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        assertThrows(IllegalArgumentException.class, () -> sub.put(Range.open(9, 12), 5));
    
        RangeMap<Integer, Integer> subSub = sub.subRangeMap(Range.closedOpen(5, 5));
        subSub.put(Range.closedOpen(5, 5), 6); // should be a no-op
        assertEquals(
            ImmutableMap.of(
                Range.open(3, 7),
                1,
                Range.closed(7, 9),
                4,
                Range.openClosed(9, 10),
                2,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
Back to top