Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,424 for Object (0.17 sec)

  1. guava/src/com/google/common/base/Equivalence.java

          return reference;
        }
    
        /**
         * Returns {@code true} if {@link Equivalence#equivalent(Object, Object)} applied to the wrapped
         * references is {@code true} and both wrappers use the {@link Object#equals(Object) same}
         * equivalence.
         */
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Equivalence.java

          return reference;
        }
    
        /**
         * Returns {@code true} if {@link Equivalence#equivalent(Object, Object)} applied to the wrapped
         * references is {@code true} and both wrappers use the {@link Object#equals(Object) same}
         * equivalence.
         */
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

    /**
     * Abstract implementation of {@link InvocationHandler} that handles {@link Object#equals}, {@link
     * Object#hashCode} and {@link Object#toString}. For example:
     *
     * <pre>
     * class Unsupported extends AbstractInvocationHandler {
     *   protected Object handleInvocation(Object proxy, Method method, Object[] args) {
     *     throw new UnsupportedOperationException();
     *   }
     * }
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashSet.java

       */
      void moveLastEntry(int dstIndex, int mask) {
        Object table = requireTable();
        int[] entries = requireEntries();
        @Nullable Object[] elements = requireElements();
        int srcIndex = size() - 1;
        if (dstIndex < srcIndex) {
          // move last entry to deleted spot
          Object object = elements[srcIndex];
          elements[dstIndex] = object;
          elements[srcIndex] = null;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Predicates.java

       * Returns a predicate that evaluates to {@code true} if the object reference being tested is
       * null.
       */
      @GwtCompatible(serializable = true)
      public static <T extends @Nullable Object> Predicate<T> isNull() {
        return ObjectPredicate.IS_NULL.withNarrowedType();
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the object reference being tested is not
       * null.
       */
      @GwtCompatible(serializable = true)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        List<@Nullable Object> args = Lists.newArrayListWithCapacity(params.size());
        for (Parameter param : params) {
          FreshValueGenerator generator = newFreshValueGenerator();
          argGenerators.add(generator);
          args.add(generateDummyArg(param, generator));
        }
        Object instance = createInstance(factory, args);
        List<Object> equalArgs = generateEqualFactoryArguments(factory, params, args);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CompactHashMap.java

       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          CompactHashMap<K, V> createWithExpectedSize(int expectedSize) {
        return new CompactHashMap<>(expectedSize);
      }
    
      private static final Object NOT_FOUND = new Object();
    
      /**
       * Maximum allowed false positive probability of detecting a hash flooding attack given random
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        }
      }
    
      public void testPut_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          // don't let the entries get GCed
          List<Entry<Object, Object>> warmed = warmUp(cache);
          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Entry<Object, Object> entry = warmed.get(i - WARMUP_MIN);
            Object newValue = new Object();
            assertSame(entry.getValue(), cache.asMap().put(entry.getKey(), newValue));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
        assertEquals(EMPTY_STATS, cache.stats());
    
        Object one = new Object();
        Object two = new Object();
        Object three = new Object();
    
        ConcurrentMap<Object, Object> map = cache.asMap();
        assertNull(map.put(one, two));
        assertSame(two, map.get(one));
        map.putAll(ImmutableMap.of(two, three));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ByFunctionOrdering.java

        return ordering.compare(function.apply(left), function.apply(right));
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        if (object == this) {
          return true;
        }
        if (object instanceof ByFunctionOrdering) {
          ByFunctionOrdering<?, ?> that = (ByFunctionOrdering<?, ?>) object;
          return this.function.equals(that.function) && this.ordering.equals(that.ordering);
        }
        return false;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2.3K bytes
    - Viewed (0)
Back to top