Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getDeclaredMethods (3.34 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTest.java

                    + " version we released in a separate artifact com.google.guava:listenablefuture.")
            .that(ListenableFuture.class.getDeclaredMethods())
            .asList()
            .containsExactly(
                ListenableFuture.class.getMethod("addListener", Runnable.class, Executor.class));
        assertWithMessage(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 19:48:16 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTest.java

                    + " version we released in a separate artifact com.google.guava:listenablefuture.")
            .that(ListenableFuture.class.getDeclaredMethods())
            .asList()
            .containsExactly(
                ListenableFuture.class.getMethod("addListener", Runnable.class, Executor.class));
        assertWithMessage(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 15 19:48:16 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashingTest.java

        // The following legacy hashing function methods have been covered by unit testing already.
        List<String> legacyHashingMethodNames = ImmutableList.of("murmur2_64", "fprint96");
        for (Method method : Hashing.class.getDeclaredMethods()) {
          if (method.getReturnType().equals(HashFunction.class) // must return HashFunction
              && Modifier.isPublic(method.getModifiers()) // only the public methods
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashingTest.java

        // The following legacy hashing function methods have been covered by unit testing already.
        List<String> legacyHashingMethodNames = ImmutableList.of("murmur2_64", "fprint96");
        for (Method method : Hashing.class.getDeclaredMethods()) {
          if (method.getReturnType().equals(HashFunction.class) // must return HashFunction
              && Modifier.isPublic(method.getModifiers()) // only the public methods
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

          Optional<Class<?>> supersWithPackagePrivateWriteReplace =
              FluentIterable.from(TypeToken.of(clazz).getTypes())
                  .transform(TypeToken::getRawType)
                  .transformAndConcat(c -> asList(c.getDeclaredMethods()))
                  .firstMatch(
                      m ->
                          m.getName().equals("writeReplace")
                              && m.getParameterTypes().length == 0
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

          Optional<Class<?>> supersWithPackagePrivateWriteReplace =
              FluentIterable.from(TypeToken.of(clazz).getTypes())
                  .transform(TypeToken::getRawType)
                  .transformAndConcat(c -> asList(c.getDeclaredMethods()))
                  .firstMatch(
                      m ->
                          m.getName().equals("writeReplace")
                              && m.getParameterTypes().length == 0
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

                  new CopyOnWriteArrayList<>(initialContents);
    
              final Method getAllStatesMethod =
                  getOnlyElement(asList(ConcurrentlyMutatedList.class.getDeclaredMethods()));
    
              final Iterator<ListFrobber> remainingActions = actionsToPerformConcurrently.iterator();
    
              final Set<List<Integer>> allStates = newHashSet();
    
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

                  new CopyOnWriteArrayList<>(initialContents);
    
              final Method getAllStatesMethod =
                  getOnlyElement(asList(ConcurrentlyMutatedList.class.getDeclaredMethods()));
    
              final Iterator<ListFrobber> remainingActions = actionsToPerformConcurrently.iterator();
    
              final Set<List<Integer>> allStates = newHashSet();
    
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/FauxveridesTest.java

        }
        return methods;
      }
    
      private static Set<MethodSignature> getPublicStaticMethods(Class<?> clazz) {
        Set<MethodSignature> publicStaticMethods = newHashSet();
    
        for (Method method : clazz.getDeclaredMethods()) {
          int modifiers = method.getModifiers();
          if (isPublic(modifiers) && isStatic(modifiers)) {
            publicStaticMethods.add(new MethodSignature(method));
          }
        }
    
    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)
  10. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

        }
        return methods;
      }
    
      private static Set<MethodSignature> getPublicStaticMethods(Class<?> clazz) {
        Set<MethodSignature> publicStaticMethods = newHashSet();
    
        for (Method method : clazz.getDeclaredMethods()) {
          int modifiers = method.getModifiers();
          if (isPublic(modifiers) && isStatic(modifiers)) {
            publicStaticMethods.add(new MethodSignature(method));
          }
        }
    
    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)
Back to top