Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 702 for objects (0.15 sec)

  1. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        // Three catchers for related types String, Object, and Comparable<?>.
        // String isa Object
        // String isa Comparable<?>
        // Comparable<?> isa Object
        StringCatcher stringCatcher = new StringCatcher();
    
        final List<Object> objectEvents = Lists.newArrayList();
        Object objCatcher =
            new Object() {
              @SuppressWarnings("unused")
              @Subscribe
    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)
  2. guava/src/com/google/common/collect/CompactLinkedHashSet.java

     * consumption at the price of moderately increased constant factors of CPU. Only use this class
     * when there is a specific reason to prioritize memory over CPU.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    class CompactLinkedHashSet<E extends @Nullable Object> extends CompactHashSet<E> {
    
    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)
  3. android/guava/src/com/google/common/collect/Multisets.java

        /**
         * Indicates whether an object equals this entry, following the behavior specified in {@link
         * Multiset.Entry#equals}.
         */
        @Override
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof Multiset.Entry) {
            Multiset.Entry<?> that = (Multiset.Entry<?>) object;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

        QUEUING,
        /** runnable has been submitted but has not yet begun execution */
        QUEUED,
        RUNNING,
      }
    
      /** Underlying executor that all submitted Runnable objects are run on. */
      private final Executor executor;
    
      @GuardedBy("queue")
      private final Deque<Runnable> queue = new ArrayDeque<>();
    
      /** see {@link WorkerRunningState} */
      @LazyInit
      @GuardedBy("queue")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

                refreshes,
                keyStrengths,
                valueStrengths);
        return Iterables.transform(
            combinations,
            new Function<List<Object>, CacheBuilder<Object, Object>>() {
              @Override
              public CacheBuilder<Object, Object> apply(List<Object> combination) {
                return createCacheBuilder(
                    (Integer) combination.get(0),
                    (Integer) combination.get(1),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

    package com.google.common.collect;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Objects;
    import com.google.common.testing.EqualsTester;
    
    /**
     * Tests {@link SingletonImmutableTable}.
     *
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

            getSet().hashCode());
      }
    
      /**
       * Returns the {@link Method} instances for the test methods in this class which call {@code
       * hashCode()} on the set values so that set tests on unhashable objects can suppress it with
       * {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method[] getHashCodeMethods() {
        return new Method[] {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/FauxveridesTest.java

      public void testImmutableSortedMapCopyOfMap() {
        Map<Object, Object> original =
            ImmutableMap.of(new Object(), new Object(), new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedMap.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterable() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

      public void testImmutableSortedMapCopyOfMap() {
        Map<Object, Object> original =
            ImmutableMap.of(new Object(), new Object(), new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedMap.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterable() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        tester.addEqualityGroup(instance, createInstance(factory, equalArgs));
        for (int i = 0; i < params.size(); i++) {
          List<Object> newArgs = Lists.newArrayList(args);
          Object newArg = argGenerators.get(i).generateFresh(params.get(i).getType());
    
          if (newArg == null || Objects.equal(args.get(i), newArg)) {
            if (params.get(i).getType().getRawType().isEnum()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top