Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1121 - 1130 of 3,940 for myobject (0.07 sec)

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

        assertEquals(1, Iterators.size(registry.getSubscribers(new Object())));
        assertEquals(1, Iterators.size(registry.getSubscribers(1)));
    
        registry.register(new IntegerSubscriber());
        assertEquals(3, Iterators.size(registry.getSubscribers("")));
        assertEquals(1, Iterators.size(registry.getSubscribers(new Object())));
        assertEquals(2, Iterators.size(registry.getSubscribers(1)));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/generate.go

    			Yaml:   true,
    			Pretty: true,
    			Strict: true,
    		})
    
    	whObject, _, err := deserializer.Decode([]byte(validatingWebhookYAML), nil, &admitv1.ValidatingWebhookConfiguration{})
    	if err != nil {
    		return "", fmt.Errorf("could not decode generated webhook: %w", err)
    	}
    	decodedWh := whObject.(*admitv1.ValidatingWebhookConfiguration)
    	for i := range decodedWh.Webhooks {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java

    @ElementTypesAreNonnullByDefault
    public abstract class AbstractBiMapTester<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMapTester<K, V> {
    
      @Override
      protected BiMap<K, V> getMap() {
        return (BiMap<K, V>) super.getMap();
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object> Entry<V, K> reverseEntry(
          Entry<K, V> entry) {
        return mapEntry(entry.getValue(), entry.getKey());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/SingletonImmutableBiMap.java

      @CheckForNull
      public V get(@CheckForNull Object key) {
        return singleKey.equals(key) ? singleValue : null;
      }
    
      @Override
      public int size() {
        return 1;
      }
    
      @Override
      public void forEach(BiConsumer<? super K, ? super V> action) {
        checkNotNull(action).accept(singleKey, singleValue);
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return singleKey.equals(key);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        // it still should only have executed twice due to memoization
        assertEquals(2, countingSupplier.calls);
      }
    
      public void testOfInstanceSuppliesSameInstance() {
        Object toBeSupplied = new Object();
        Supplier<Object> objectSupplier = Suppliers.ofInstance(toBeSupplied);
        assertSame(toBeSupplied, objectSupplier.get());
        assertSame(toBeSupplied, objectSupplier.get()); // idempotent
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/SuppliersTest.java

        // it still should only have executed twice due to memoization
        assertEquals(2, countingSupplier.calls);
      }
    
      public void testOfInstanceSuppliesSameInstance() {
        Object toBeSupplied = new Object();
        Supplier<Object> objectSupplier = Suppliers.ofInstance(toBeSupplied);
        assertSame(toBeSupplied, objectSupplier.get());
        assertSame(toBeSupplied, objectSupplier.get()); // idempotent
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      static <V extends @Nullable Object, X extends Exception> V getChecked(
          Future<V> future, Class<X> exceptionClass) throws X {
        return getChecked(bestGetCheckedTypeValidator(), future, exceptionClass);
      }
    
      /** Implementation of {@link Futures#getChecked(Future, Class)}. */
      @CanIgnoreReturnValue
      @VisibleForTesting
      @ParametricNullness
      static <V extends @Nullable Object, X extends Exception> V getChecked(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(map, is(notNullValue()));
            assertThat(map.isEmpty(), is(false));
            assertThat(map.get(Foo.class.getTypeParameters()[0]), is(sameClass(Object.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testGenericMethod() throws Exception {
            final Map<TypeVariable<?>, Type> map = GenericsUtil.getTypeVariableMap(Fuga.class);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

      }
    
      /**
       * Incorporate additional requirements into an existing requirements object.
       *
       * @param requirements the existing requirements object
       * @param moreRequirements more requirements to incorporate
       * @param source the source of the additional requirements (used only for error reporting)
       * @return the existing requirements object, modified to include the additional requirements
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Callables.java

    @ElementTypesAreNonnullByDefault
    public final class Callables {
      private Callables() {}
    
      /** Creates a {@code Callable} which immediately returns a preset value each time it is called. */
      public static <T extends @Nullable Object> Callable<T> returning(@ParametricNullness T value) {
        return () -> value;
      }
    
      /**
       * Creates an {@link AsyncCallable} from a {@link Callable}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top