Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 291 for bots (0.12 sec)

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

      }
    
      ExplicitOrdering(ImmutableMap<T, Integer> rankMap) {
        this.rankMap = rankMap;
      }
    
      @Override
      public int compare(T left, T right) {
        return rank(left) - rank(right); // safe because both are nonnegative
      }
    
      private int rank(T value) {
        Integer rank = rankMap.get(value);
        if (rank == null) {
          throw new IncomparableValueException(value);
        }
        return rank;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      private static final int ENDPOINT = -2;
    
      /**
       * Contains the link pointers corresponding with the entries, in the range of [0, size()). The
       * high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer
       * (pointing to the next entry in the linked list). The pointers in [size(), entries.length) are
       * all "null" (UNSET).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java

    @SuppressWarnings("serial")
    class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> {
      static final RegularImmutableBiMap<Object, Object> EMPTY =
          new RegularImmutableBiMap<Object, Object>();
    
      // This reference is used both by the GWT compiler to infer the elements
      // of the lists that needs to be serialized.
      private ImmutableBiMap<V, K> inverse;
    
      @SuppressWarnings("unchecked") // used only for the empty map, which works for any types
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      }
    
      @Override
      public void clear() {
        if (needsAllocArrays()) {
          return;
        }
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
        // Either both arrays are null or neither is, but we check both to satisfy the nullness checker.
        if (predecessor != null && successor != null) {
          Arrays.fill(predecessor, 0, size(), 0);
          Arrays.fill(successor, 0, size(), 0);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/eventbus/EventBusTest.java

      }
    
      /**
       * Tests that bridge methods are not subscribed to events. In Java 8, annotations are included on
       * the bridge method in addition to the original method, which causes both the original and bridge
       * methods to be subscribed (since both are annotated @Subscribe) without specifically checking
       * for bridge methods.
       */
      public void testRegistrationWithBridgeMethod() {
        final AtomicInteger calls = new AtomicInteger();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

      }
    
      /**
       * Tests that bridge methods are not subscribed to events. In Java 8, annotations are included on
       * the bridge method in addition to the original method, which causes both the original and bridge
       * methods to be subscribed (since both are annotated @Subscribe) without specifically checking
       * for bridge methods.
       */
      public void testRegistrationWithBridgeMethod() {
        final AtomicInteger calls = new AtomicInteger();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java

      /*
       * Previously we had a field named list that was initialized to the value of
       * collection in setUp(), but that caused problems when a tester changed the
       * value of list or collection but not both.
       */
      protected final List<E> getList() {
        return (List<E>) collection;
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>The {@code AbstractListTester} implementation overrides {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

        try {
          Object unused = digest.clone();
          return true;
        } catch (CloneNotSupportedException e) {
          return false;
        }
      }
    
      @Override
      public int bits() {
        return bytes * Byte.SIZE;
      }
    
      @Override
      public String toString() {
        return toString;
      }
    
      private static MessageDigest getMessageDigest(String algorithmName) {
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableMap.java

          return null;
        }
        int mask = tableSize - 1;
        Builder.DuplicateKey duplicateKey = null;
        if (tableSize <= BYTE_MAX_SIZE) {
          /*
           * Use 8 bits per entry. The value is unsigned to allow use up to a size of 2^8.
           *
           * The absent indicator of -1 signed becomes 2^8 - 1 unsigned, which reduces the actual max
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        SettableFuture<?> unused = SettableFuture.create();
        // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation
        // cause system property.  This allows us to run with both settings of the property in one jvm
        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
Back to top