Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3361 - 3370 of 3,920 for extenders (0.08 sec)

  1. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

    import static org.junit.Assert.assertThrows;
    
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link LinearTransformation}.
     *
     * @author Pete Gillin
     */
    public class LinearTransformationTest extends TestCase {
    
      private static final double ALLOWED_ERROR = 1e-10;
    
      public void testMappingAnd_regular() {
        double x1 = 1.2;
        double y1 = 3.4;
        double xDelta = 5.6;
        double yDelta = 7.8;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/MutableNetwork.java

     * @author Joshua O'Madadhain
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     * @since 20.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface MutableNetwork<N, E> extends Network<N, E> {
    
      /**
       * Adds {@code node} if it is not already present.
       *
       * <p><b>Nodes must be unique</b>, just as {@code Map} keys must be. They must also be non-null.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

     * @author Joshua O'Madadhain
     * @author Omar Darwish
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    final class StandardMutableNetwork<N, E> extends StandardNetwork<N, E>
        implements MutableNetwork<N, E> {
    
      /** Constructs a mutable graph with the properties specified in {@code builder}. */
      StandardMutableNetwork(NetworkBuilder<? super N, ? super E> builder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EquivalenceTest.java

    /**
     * Unit test for {@link Equivalence}.
     *
     * @author Jige Yu
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class EquivalenceTest extends TestCase {
      public void testPairwiseEquivalent() {
        EquivalenceTester.of(Equivalence.equals().<String>pairwise())
            .addEquivalenceGroup(ImmutableList.<String>of())
            .addEquivalenceGroup(ImmutableList.of("a"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MapComputeTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentToPresent() {
        assertEquals(
            "Map.compute(absent, functionReturningValue) should return value",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SortedMapNavigationTester<K, V> extends AbstractMapTester<K, V> {
    
      private SortedMap<K, V> navigableMap;
      private Entry<K, V> a;
      private Entry<K, V> c;
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapRemoveEntryTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAbsent() {
        assertFalse(multimap().remove(k0(), v1()));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LinearTransformationTest.java

    import static org.junit.Assert.assertThrows;
    
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link LinearTransformation}.
     *
     * @author Pete Gillin
     */
    public class LinearTransformationTest extends TestCase {
    
      private static final double ALLOWED_ERROR = 1e-10;
    
      public void testMappingAnd_regular() {
        double x1 = 1.2;
        double y1 = 3.4;
        double xDelta = 5.6;
        double yDelta = 7.8;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/net/PercentEscaperTest.java

    import com.google.common.escape.UnicodeEscaper;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link PercentEscaper}.
     *
     * @author David Beaumont
     */
    @GwtCompatible
    public class PercentEscaperTest extends TestCase {
    
      /** Tests that the simple escaper treats 0-9, a-z and A-Z as safe */
      public void testSimpleEscaper() {
        UnicodeEscaper e = new PercentEscaper("", false);
        for (char c = 0; c < 128; c++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

     * responsible for; after all threads have completed, we sum the per-key deltas and compare to the
     * existing multiset values.
     *
     * @author mike nonemacher
     */
    
    public class ConcurrentHashMultisetBasherTest extends TestCase {
    
      public void testAddAndRemove_concurrentHashMap() throws Exception {
        testAddAndRemove(new ConcurrentHashMap<String, AtomicInteger>());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top