Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 6,596 for _return (0.08 sec)

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

        result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1));
        return RANDOM_SOURCE.nextBoolean() ? result : -result;
      }
    
      /** Returns a random integer between zero and {@code MAX_EXPONENT}. */
      static int randomExponent() {
        return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1);
      }
    
      static double randomPositiveDouble() {
        return Math.exp(randomDouble(6));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

          }
          append(" HTTP/1.1")
        }
    
      /**
       * Returns true if the request line should contain the full URL with host and port (like "GET
       * http://android.com/foo HTTP/1.1") or only the path (like "GET /foo HTTP/1.1").
       */
      private fun includeAuthorityInRequestLine(
        request: Request,
        proxyType: Proxy.Type,
      ): Boolean {
        return !request.isHttps && proxyType == Proxy.Type.HTTP
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/CaseFormat.java

        @Override
        String normalizeWord(String word) {
          return Ascii.toLowerCase(word);
        }
    
        @Override
        String convert(CaseFormat format, String s) {
          if (format == LOWER_UNDERSCORE) {
            return s.replace('-', '_');
          }
          if (format == UPPER_UNDERSCORE) {
            return Ascii.toUpperCase(s.replace('-', '_'));
          }
          return super.convert(format, s);
        }
      },
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java

      @SuppressWarnings("unchecked") // generic arrays make typesafety sad
      public Entry<K, V>[] createArray(int length) {
        return (Entry<K, V>[]) new Entry<?, ?>[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
      public List<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) {
        return insertionOrder;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java

            delegate.setAddLocationInformation(addLocationInformation);
        }
    
        /**
         * Returns the state of the "add default entities" flag.
         *
         * @return boolean
         */
        public boolean getAddDefaultEntities() {
            return delegate.getAddDefaultEntities();
        } // -- boolean getAddDefaultEntities()
    
        /**
         * Sets the state of the "add default entities" flag.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

            Set<Entry<K, V>> entries) {
          return new ForwardingSet<Map.Entry<K, V>>() {
            @Override
            protected Set<Entry<K, V>> delegate() {
              return entries;
            }
    
            @Override
            public Iterator<Entry<K, V>> iterator() {
              return UnmodifiableEntry.transformEntries(super.iterator());
            }
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. internal/config/policy/opa/config.go

    	var so subArgs
    
    	if err := json.Unmarshal(data, &so); err != nil {
    		return err
    	}
    
    	oa := Args(so)
    	if oa.URL == nil || oa.URL.String() == "" {
    		*a = oa
    		return nil
    	}
    
    	*a = oa
    	return nil
    }
    
    // Opa - implements opa policy agent calls.
    type Opa struct {
    	args   Args
    	client *http.Client
    }
    
    // Enabled returns if opa is enabled.
    func Enabled(kvs config.KVS) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. gorm.go

    		}
    	}
    	relation.JoinTable = joinSchema
    
    	return nil
    }
    
    // Use use plugin
    func (db *DB) Use(plugin Plugin) error {
    	name := plugin.Name()
    	if _, ok := db.Plugins[name]; ok {
    		return ErrRegistered
    	}
    	if err := plugin.Initialize(db); err != nil {
    		return err
    	}
    	db.Plugins[name] = plugin
    	return nil
    }
    
    // ToSQL for generate SQL string.
    //
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Oct 09 11:29:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java

      public int indexOf(@Nullable Object object) {
        return delegateList().indexOf(object);
      }
    
      public int lastIndexOf(@Nullable Object object) {
        return delegateList().lastIndexOf(object);
      }
    
      public E get(int index) {
        return delegateList().get(index);
      }
    
      public ImmutableList<E> subList(int fromIndex, int toIndex) {
        return unsafeDelegateList(delegateList().subList(fromIndex, toIndex));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getListIteratorFullyModifiableMethod() {
        return getMethod(ListListIteratorTester.class, "testListIterator_fullyModifiable");
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testListIterator_unmodifiable()} so that it can
       * be suppressed in GWT tests.
       */
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top