Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1271 - 1280 of 2,158 for booleans (0.04 sec)

  1. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      }
    
      /**
       * Similar to the above, but keeps a boolean flag rather than checking for the string accumulated
       * so far being empty. As a result, it does not have the above-mentioned bug.
       */
      @Benchmark
      int booleanIfFirst(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          boolean append = false;
          for (String comp : components) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingMapEntry.java

      }
    
      @Override
      @ParametricNullness
      @CanIgnoreReturnValue
      public V setValue(@ParametricNullness V value) {
        return delegate().setValue(value);
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return delegate().equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

        // TODO(cpovirk): Test forwarding more extensively.
      }
    
      public void testAddCallback() {
        FluentFuture<String> f = FluentFuture.from(immediateFuture("a"));
        final boolean[] called = new boolean[1];
        f.addCallback(
            new FutureCallback<String>() {
              @Override
              public void onSuccess(String result) {
                called[0] = true;
              }
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/eventbus/Subscriber.java

      }
    
      @Override
      public final int hashCode() {
        return (31 + method.hashCode()) * 31 + System.identityHashCode(target);
      }
    
      @Override
      public final boolean equals(@CheckForNull Object obj) {
        if (obj instanceof Subscriber) {
          Subscriber that = (Subscriber) obj;
          // Use == so that different equal instances will still receive events.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

        }
    
        @Override
        public Class<?>[] getParameterTypes() {
            return parameterTypes;
        }
    
        @Override
        public boolean isPublic() {
            return ConstructorUtil.isPublic(constructor);
        }
    
        @Override
        public boolean isParameterized(final int index) {
            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/settings/DefaultMavenSettingsBuilder.java

                    "${user.home}/.m2/settings.xml", "user.home", MavenSettingsBuilder.ALT_USER_SETTINGS_XML_LOCATION);
    
            return buildSettings(userSettingsFile);
        }
    
        public Settings buildSettings(boolean useCachedSettings) throws IOException, XmlPullParserException {
            return buildSettings();
        }
    
        public Settings buildSettings(File userSettingsFile) throws IOException, XmlPullParserException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

        .atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()
    
    
    object Attributes {
        val artifactType = Attribute.of("artifactType", String::class.java)
        val minified = Attribute.of("minified", Boolean::class.javaObjectType)
    }
    
    
    class JarAnalyzer(
        private val shadowPackage: String,
        private val keepPackages: Set<String>,
        private val unshadedPackages: Set<String>,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Oct 28 12:55:30 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

      /** Returns the number of values in this array. */
      public int length() {
        return end - start;
      }
    
      /** Returns {@code true} if there are no values in this array ({@link #length} is zero). */
      public boolean isEmpty() {
        return end == start;
      }
    
      /**
       * Returns the {@code double} value present at the given index.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

      public final void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException {
        delegate.awaitTerminated(timeout, unit);
      }
    
      interface Cancellable {
        void cancel(boolean mayInterruptIfRunning);
    
        boolean isCancelled();
      }
    
      private static final class FutureAsCancellable implements Cancellable {
        private final Future<?> delegate;
    
        FutureAsCancellable(Future<?> delegate) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 16:22:21 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/RateLimiter.java

       * @throws IllegalArgumentException if the requested number of permits is negative or zero
       * @since 28.0 (but only since 33.4.0 in the Android flavor)
       */
      public boolean tryAcquire(Duration timeout) {
        return tryAcquire(1, toNanosSaturated(timeout), TimeUnit.NANOSECONDS);
      }
    
      /**
       * Acquires a permit from this {@code RateLimiter} if it can be obtained without exceeding the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top