Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for Resource (0.17 sec)

  1. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * all threads. Note, however, that it does not guarantee fairness.
     *
     * <p>Rate limiters are often used to restrict the rate at which some physical or logical resource
     * is accessed. This is in contrast to {@link java.util.concurrent.Semaphore} which restricts the
     * number of concurrent accesses instead of the rate (note though that concurrency and rate are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/ClassPath.java

      private final ImmutableSet<ResourceInfo> resources;
    
      private ClassPath(ImmutableSet<ResourceInfo> resources) {
        this.resources = resources;
      }
    
      /**
       * Returns a {@code ClassPath} representing all classes and resources loadable from {@code
       * classloader} and its ancestor class loaders.
       *
       * <p><b>Warning:</b> {@code ClassPath} can find classes and resources only from:
       *
       * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        } catch (SecurityException expected) {
        }
        ClassPath classPath = ClassPath.from(getClass().getClassLoader());
        // ClassPath may contain resources from the boot class loader; just not from the class path.
        for (ResourceInfo resource : classPath.getResources()) {
          assertThat(resource.getResourceName()).doesNotContain("com/google/common/reflect/");
        }
      }
    
      private static ClassPath.ClassInfo findClass(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        } catch (SecurityException expected) {
        }
        ClassPath classPath = ClassPath.from(getClass().getClassLoader());
        // ClassPath may contain resources from the boot class loader; just not from the class path.
        for (ResourceInfo resource : classPath.getResources()) {
          assertThat(resource.getResourceName()).doesNotContain("com/google/common/reflect/");
        }
      }
    
      private static ClassPath.ClassInfo findClass(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Closer.java

     *       to close resources will be thrown from the finally block. The throwable from the try block
     *       will be thrown.
     *   <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown
     *       by an attempt to close a resource will be thrown.
     *   <li>Any exception caught when attempting to close a resource that is <i>not</i> thrown (because
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. android/pom.xml

        <sourceDirectory>src</sourceDirectory>
        <testSourceDirectory>test</testSourceDirectory>
        <resources>
          <resource>
            <directory>../..</directory>
            <includes>
              <include>LICENSE</include>
            </includes>
            <targetPath>META-INF</targetPath>
          </resource>
        </resources>
        <testResources>
          <testResource>
            <directory>test</directory>
            <excludes>
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

          for (int j = 0; j < i; j++) {
            Map<Integer, @Nullable Integer> source = new TreeMap<>();
            for (int k = 0; k < i; k++) {
              source.put(k, k);
            }
            source.put(j, null);
            try {
              ImmutableSortedMap.copyOf((Map<Integer, Integer>) source);
              fail("Expected NullPointerException in copyOf(" + source + ")");
            } catch (NullPointerException expected) {
            }
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

       * @since 6.0 (source-compatible since 2.0)
       */
      public static <E> ImmutableMultiset<E> of(E element) {
        return copyFromElements(element);
      }
    
      /**
       * Returns an immutable multiset containing the given elements, in order.
       *
       * @throws NullPointerException if any element is null
       * @since 6.0 (source-compatible since 2.0)
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          } else {
            throw new UnknownElementException(nextElements, e);
          }
        }
    
        private E transferElement(Stack<E> source, Stack<E> destination) {
          if (source.isEmpty()) {
            throw PermittedMetaException.NSEE;
          }
    
          destination.push(source.pop());
          stackWithLastReturnedElementAtTop = destination;
          return destination.peek();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      // without the reference to unlimited queues.
      /**
       * Returns the number of additional elements that this queue can ideally (in the absence of memory
       * or resource constraints) accept without blocking. This is always equal to the initial capacity
       * of this queue less the current {@code size} of this queue.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
Back to top