Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 226 for wrap (0.21 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

         */
        runConcurrentlyMutatedTest(elements(), ops(add(1), add(2)), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(add(1), nop()), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(add(1), remove()), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(nop(), add(1)), wrap);
    
        runConcurrentlyMutatedTest(elements(1), ops(remove(), nop()), wrap);
    
        runConcurrentlyMutatedTest(elements(1), ops(remove(), add(2)), wrap);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

         */
        runConcurrentlyMutatedTest(elements(), ops(add(1), add(2)), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(add(1), nop()), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(add(1), remove()), wrap);
    
        runConcurrentlyMutatedTest(elements(), ops(nop(), add(1)), wrap);
    
        runConcurrentlyMutatedTest(elements(1), ops(remove(), nop()), wrap);
    
        runConcurrentlyMutatedTest(elements(1), ops(remove(), add(2)), wrap);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThat(Primitives.isWrapperType(void.class)).isFalse();
      }
    
      public void testWrap() {
        assertThat(Primitives.wrap(int.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(Integer.class)).isSameInstanceAs(Integer.class);
        assertThat(Primitives.wrap(String.class)).isSameInstanceAs(String.class);
      }
    
      public void testUnwrap() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEqualityGroup(
                LENGTH_EQUIVALENCE.wrap("hello"),
                LENGTH_EQUIVALENCE.wrap("hello"),
                LENGTH_EQUIVALENCE.wrap("world"))
            .addEqualityGroup(LENGTH_EQUIVALENCE.wrap("hi"), LENGTH_EQUIVALENCE.wrap("yo"))
            .addEqualityGroup(
                LENGTH_EQUIVALENCE.<@Nullable String>wrap(null),
                LENGTH_EQUIVALENCE.<@Nullable String>wrap(null))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ForwardingMultimapTest.java

                    return wrap((Multimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        Multimap<Integer, String> map1 = ImmutableMultimap.of(1, "one");
        Multimap<Integer, String> map2 = ImmutableMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingSetMultimapTest.java

                    return wrap((SetMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        SetMultimap<Integer, String> map1 = ImmutableSetMultimap.of(1, "one");
        SetMultimap<Integer, String> map2 = ImmutableSetMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ForwardingSetMultimapTest.java

                    return wrap((SetMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        SetMultimap<Integer, String> map1 = ImmutableSetMultimap.of(1, "one");
        SetMultimap<Integer, String> map2 = ImmutableSetMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. internal/etag/reader.go

    //	// the ETag computed over the content.
    //	reader := etag.Wrap(encryptedContent, content)
    func Wrap(wrapped, content io.Reader) io.Reader {
    	if t, ok := content.(Tagger); ok {
    		return wrapReader{
    			Reader: wrapped,
    			Tagger: t,
    		}
    	}
    	return wrapReader{
    		Reader: wrapped,
    	}
    }
    
    // A Reader wraps an io.Reader and computes the
    // MD5 checksum of the read content as ETag.
    //
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEqualityGroup(
                LENGTH_EQUIVALENCE.wrap("hello"),
                LENGTH_EQUIVALENCE.wrap("hello"),
                LENGTH_EQUIVALENCE.wrap("world"))
            .addEqualityGroup(LENGTH_EQUIVALENCE.wrap("hi"), LENGTH_EQUIVALENCE.wrap("yo"))
            .addEqualityGroup(
                LENGTH_EQUIVALENCE.<@Nullable String>wrap(null),
                LENGTH_EQUIVALENCE.<@Nullable String>wrap(null))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Callables.java

        checkNotNull(listeningExecutorService);
        return () -> listeningExecutorService.submit(callable);
      }
    
      /**
       * Wraps the given callable such that for the duration of {@link Callable#call} the thread that is
       * running will have the given name.
       *
       * @param callable The callable to wrap
       * @param nameSupplier The supplier of thread names, {@link Supplier#get get} will be called once
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 4.4K bytes
    - Viewed (0)
Back to top