Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 156 for mocked (0.14 sec)

  1. android/guava/src/com/google/common/collect/Sets.java

          int expectedSize) {
        return new HashSet<>(Maps.capacity(expectedSize));
      }
    
      /**
       * Creates a thread-safe set backed by a hash map. The set is backed by a {@link
       * ConcurrentHashMap} instance, and thus carries the same concurrency guarantees.
       *
       * <p>Unlike {@code HashSet}, this class does NOT allow {@code null} to be used as an element. The
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java

    import com.google.j2objc.annotations.WeakOuter;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness
     * protecting against hash flooding.
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/Striped64.java

      /**
       * Base value, used mainly when there is no contention, but also as a fallback during table
       * initialization races. Updated via CAS.
       */
      transient volatile long base;
    
      /** Spinlock (locked via CAS) used when resizing and/or creating Cells. */
      transient volatile int busy;
    
      /** Package-private default constructor */
      Striped64() {}
    
      /** CASes the base field. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

            logger = LogManager.getLogger(loggerName);
            final String logFormat = ComponentUtil.getFessConfig().getAppAuditLogFormat();
            if (StringUtil.isBlank(logFormat)) {
                useEcsFormat = "docker".equals(System.getenv("FESS_APP_TYPE"));
            } else if ("ecs".equals(logFormat)) {
                useEcsFormat = true;
            }
        }
    
        public void login(final OptionalThing<FessUserBean> user) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java

            public void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories) {}
    
            public boolean isBlocked() {
                return false;
            }
    
            public void setBlocked(boolean blocked) {}
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

    import java.util.Set;
    import java.util.function.ObjIntConsumer;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Basic implementation of {@code Multiset<E>} backed by an instance of {@code Map<E, Count>}.
     *
     * <p>For serialization to work, the subclass must specify explicit {@code readObject} and {@code
     * writeObject} methods.
     *
     * @author Kevin Bourrillion
     */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      /**
       * Updates the index an iterator is pointing to after a call to remove: returns the index of the
       * entry that should be looked at after a removal on indexRemoved, with indexBeforeRemove as the
       * index that *was* the next entry that would be looked at.
       */
      int adjustAfterRemove(int indexBeforeRemove, @SuppressWarnings("unused") int indexRemoved) {
        return indexBeforeRemove - 1;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multiset.java

      @CanIgnoreReturnValue
      boolean setCount(@ParametricNullness E element, int oldCount, int newCount);
    
      // Views
    
      /**
       * Returns the set of distinct elements contained in this multiset. The element set is backed by
       * the same data as the multiset, so any change to either is immediately reflected in the other.
       * The order of the elements in the element set is unspecified.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        sendRequest(methodName, arguments);
        assertEquals(expected, getResponse(methodName).getThrowable().getClass());
      }
    
      /**
       * Causes this thread to call the named method, and asserts that this thread becomes blocked on
       * the lock-like object. The lock-like object must have a method equivalent to {@link
       * java.util.concurrent.locks.ReentrantLock#hasQueuedThread(Thread)}.
       */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

              }
            }
          }
        }
      }
    
      /**
       * Using this as the blocker object allows introspection and debugging tools to see that the
       * currentRunner thread is blocked on the progress of the interruptor thread, which can help
       * identify deadlocks.
       */
      @VisibleForTesting
      static final class Blocker extends AbstractOwnableSynchronizer implements Runnable {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
Back to top