Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,110 for instance (0.21 sec)

  1. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * this parameter is marked nullable, this method does nothing.
       *
       * @param instance the instance to invoke {@code method} on, or null if {@code method} is static
       */
      public void testMethodParameter(
          @Nullable final Object instance, final Method method, int paramIndex) {
        method.setAccessible(true);
        testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass());
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Suppliers.java

          this.instance = instance;
        }
    
        @Override
        @ParametricNullness
        public T get() {
          return instance;
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof SupplierOfInstance) {
            SupplierOfInstance<?> that = (SupplierOfInstance<?>) obj;
            return Objects.equal(instance, that.instance);
          }
          return false;
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
            if (instance != null
                && packagesToTest.contains(Reflection.getPackageName(instance.getClass()))) {
              try {
                nullPointerTester.testAllPublicInstanceMethods(instance);
              } catch (AssertionError e) {
                AssertionError error =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
            if (instance != null
                && packagesToTest.contains(Reflection.getPackageName(instance.getClass()))) {
              try {
                nullPointerTester.testAllPublicInstanceMethods(instance);
              } catch (AssertionError e) {
                AssertionError error =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * this parameter is marked nullable, this method does nothing.
       *
       * @param instance the instance to invoke {@code method} on, or null if {@code method} is static
       */
      public void testMethodParameter(@Nullable Object instance, Method method, int paramIndex) {
        method.setAccessible(true);
        testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass());
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Cut.java

          return INSTANCE;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /*
       * The implementation neither produces nor consumes any non-null instance of
       * type C, so casting the type parameter is safe.
       */
      @SuppressWarnings("unchecked")
      static <C extends Comparable> Cut<C> aboveAll() {
        return (Cut<C>) AboveAll.INSTANCE;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DiscreteDomain.java

        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
          return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue();
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Optional.java

      }
    
      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
       * Returns the contained instance, which must be present. If the instance might be absent, use
       * {@link #or(Object)} or {@link #orNull} instead.
       *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/DiscreteDomain.java

        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
          return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue();
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Cut.java

          return INSTANCE;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /*
       * The implementation neither produces nor consumes any non-null instance of
       * type C, so casting the type parameter is safe.
       */
      @SuppressWarnings("unchecked")
      static <C extends Comparable> Cut<C> aboveAll() {
        return (Cut<C>) AboveAll.INSTANCE;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top