Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 419 for Functions (0.83 sec)

  1. android/guava/src/com/google/common/math/MathPreconditions.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.math.BigInteger;
    import java.math.RoundingMode;
    
    /**
     * A collection of preconditions for math functions.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class MathPreconditions {
      @CanIgnoreReturnValue
      static int checkPositive(String role, int x) {
        if (x <= 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Functions.toStringFunction;
    import static com.google.common.collect.Maps.uniqueIndex;
    import static java.util.Arrays.asList;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/AppendableWriter.java

        // It turns out that creating a new String is usually as fast, or faster
        // than wrapping cbuf in a light-weight CharSequence.
        target.append(new String(cbuf, off, len));
      }
    
      /*
       * Override a few functions for performance reasons to avoid creating unnecessary strings.
       */
    
      @Override
      public void write(int c) throws IOException {
        checkNotClosed();
        target.append((char) c);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

      }
    
      /**
       * A function from an input to a result.
       *
       * @param <T> the type of the input to the function
       * @param <U> the type of the result of the function
       */
      public interface ClosingFunction<T extends @Nullable Object, U extends @Nullable Object> {
    
        /**
         * Applies this function to an input, or throws an exception if unable to do so.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Converter.java

       * exception (typically, but not necessarily, {@link IllegalArgumentException}).
       *
       * <p>The returned converter is serializable if both provided functions are.
       *
       * @since 17.0
       */
      public static <A, B> Converter<A, B> from(
          Function<? super A, ? extends B> forwardFunction,
          Function<? super B, ? extends A> backwardFunction) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 18 21:43:06 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ConverterTest.java

        assertSame(Converter.identity(), Converter.identity());
      }
    
      public void testFrom() {
        Function<String, Integer> forward =
            new Function<String, Integer>() {
              @Override
              public Integer apply(String input) {
                return Integer.parseInt(input);
              }
            };
        Function<Object, String> backward = toStringFunction();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/Fingerprint2011.java

      }
    
      @Override
      public int bits() {
        return 64;
      }
    
      @Override
      public String toString() {
        return "Hashing.fingerprint2011()";
      }
    
      // End of public functions.
    
      @VisibleForTesting
      static long fingerprint(byte[] bytes, int offset, int length) {
        long result;
    
        if (length <= 32) {
          result = murmurHash64WithSeed(bytes, offset, length, K0 ^ K1 ^ K2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Tables.java

              V,
              I extends Table<R, C, V>>
          Collector<T, ?, I> toTable(
              java.util.function.Function<? super T, ? extends R> rowFunction,
              java.util.function.Function<? super T, ? extends C> columnFunction,
              java.util.function.Function<? super T, ? extends V> valueFunction,
              java.util.function.Supplier<I> tableSupplier) {
        return TableCollectors.<T, R, C, V, I>toTable(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  9. src/packaging/deb/init.d/fess

    PATH=/bin:/usr/bin:/sbin:/usr/sbin
    NAME=fess
    DESC="Fess Server"
    DEFAULT=/etc/default/$NAME
    
    if [ `id -u` -ne 0 ]; then
    	echo "You need root privileges to run this script"
    	exit 1
    fi
    
    
    . /lib/lsb/init-functions
    
    if [ -r /etc/default/rcS ]; then
    	. /etc/default/rcS
    fi
    
    # The following variables can be overwritten in $DEFAULT
    
    # Run Fess as this user ID and group ID
    FESS_USER=${packaging.fess.user}
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ListsTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    import com.google.common.base.Functions;
    import com.google.common.collect.testing.IteratorTester;
    import com.google.common.collect.testing.ListTestSuiteBuilder;
    import com.google.common.collect.testing.TestStringListGenerator;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
Back to top