Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 639 for single2 (0.05 seconds)

  1. guava/src/com/google/common/collect/ImmutableRangeMap.java

       */
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of() {
        return (ImmutableRangeMap<K, V>) EMPTY;
      }
    
      /** Returns an immutable range map mapping a single range to a single value. */
      public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of(Range<K> range, V value) {
        return new ImmutableRangeMap<>(ImmutableList.of(range), ImmutableList.of(value));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/TopKSelector.java

       * operation takes amortized linear time in the length of {@code elements}.
       *
       * <p>If all input data to this {@code TopKSelector} is in a single {@code Iterable}, prefer
       * {@link Ordering#leastOf(Iterable, int)}, which provides a simpler API for that use case.
       */
      public void offerAll(Iterable<? extends T> elements) {
        offerAll(elements.iterator());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  3. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

      static void checkCast(Class<?> clazz, Object obj) {}
    
      static <T> T[] clone(T[] array) {
        return (T[]) Arrays.copyOfRange(array, 0, array.length);
      }
    
      // TODO: Consolidate different copies in one single place.
      static String format(String template, Object... args) {
        // start substituting the arguments into the '%s' placeholders
        StringBuilder builder = new StringBuilder(template.length() + 16 * args.length);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/util/StringUtilTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
        void testJoinSingleElement() {
            String result = StringUtil.join(",", "hello");
            assertEquals("hello", result);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 9K bytes
    - Click Count (0)
  5. android-test/src/androidDeviceTest/java/okhttp/android/test/SingleAndroidTest.kt

    import mockwebserver3.MockWebServer
    import okhttp3.ConnectionPool
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.tls.internal.TlsUtil.localhost
    import org.junit.jupiter.api.Test
    
    /**
     * This single Junit 4 test is our Android test suite on API 21-25.
     */
    class SingleAndroidTest {
      private val handshakeCertificates = localhost()
    
      private var client: OkHttpClient =
        OkHttpClient
          .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 26 07:38:51 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

     *
     * <p>The size of the data structure used by {@link ArrayBasedCharEscaper} is proportional to the
     * highest valued character that requires escaping. For example a replacement map containing the
     * single character '{@code \}{@code u1000}' will require approximately 16K of memory. If you need
     * to create multiple escaper instances that have the same character replacement mapping consider
     * using {@link ArrayBasedEscaperMap}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            SMBUtil.writeInt2(AvPair.MsvAvEOL, result, 0);
            SMBUtil.writeInt2(0, result, 2);
            return result;
        }
    
        /**
         * Test decode with valid single AvPair followed by EOL
         */
        @Test
        @DisplayName("Decode single AvPair with EOL")
        void testDecodeSinglePair() throws CIFSException {
            // Create test data: AvFlags with value 0x12345678 + EOL
            byte[] flagData = new byte[4];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/hash/Funnel.java

     *
     * <p>Note that serialization of {@linkplain BloomFilter bloom filters} requires the proper
     * serialization of funnels. When possible, it is recommended that funnels be implemented as a
     * single-element enum to maintain serialization guarantees. See Effective Java (2nd Edition), Item
     * 3: "Enforce the singleton property with a private constructor or an enum type". For example:
     *
     * {@snippet :
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/LazyLogger.java

      LazyLogger(Class<?> ownerOfLogger) {
        this.loggerName = ownerOfLogger.getName();
      }
    
      Logger get() {
        /*
         * We use double-checked locking. We could the try racy single-check idiom, but that would
         * depend on Logger to not contain mutable state.
         *
         * We could use Suppliers.memoizingSupplier here, but I micro-optimized to this implementation
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/testing/TearDown.java

     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @FunctionalInterface
    @GwtCompatible
    @NullMarked
    public interface TearDown {
      /**
       * Performs a <b>single</b> tear-down operation. See test-libraries-for-java's {@code
       * com.google.common.testing.junit3.TearDownTestCase} and {@code
       * com.google.common.testing.junit4.TearDownTestCase} for example.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 1.9K bytes
    - Click Count (0)
Back to Top