Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for Recycle (0.46 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.collect.Iterables.cycle;
    import static com.google.common.collect.Iterables.limit;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.collect.Iterables.cycle;
    import static com.google.common.collect.Iterables.limit;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.Footprint;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

            this.fid = fid;
            this.offset = offset;
            this.remaining = remaining;
            this.b = b;
            this.off = off;
            dataLength = len;
            digest = null; /* otherwise recycled commands
                            * like writeandx will choke if session
                            * closes in between */
        }
        int getBatchLimit( byte command ) {
            if( command == SMB_COM_READ_ANDX ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.3K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultArtifactDescriptorReader.java

                if (!visited.add(a.getGroupId() + ':' + a.getArtifactId() + ':' + a.getBaseVersion())) {
                    RepositoryException exception =
                            new RepositoryException("Artifact relocations form a cycle: " + visited);
                    invalidDescriptor(session, trace, a, exception);
                    if ((getPolicy(session, a, request) & ArtifactDescriptorPolicy.IGNORE_INVALID) != 0) {
                        return null;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

       * should use an explicit {@code break} or be certain that you will eventually remove all the
       * elements.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> Iterator<T> cycle(T... elements) {
        return cycle(Lists.newArrayList(elements));
      }
    
      /**
       * Returns an Iterator that walks the specified array, nulling out elements behind it. This can
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FluentIterable.java

       * use {@code Stream.generate(() -> collection).flatMap(Collection::stream)}.
       */
      public final FluentIterable<E> cycle() {
        return from(Iterables.cycle(getDelegate()));
      }
    
      /**
       * Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/FinalizableReferenceQueue.java

       *
       * This means that dynamically loaded web applications and OSGi bundles can't be unloaded.
       *
       * If the library is loaded in an application class loader, we try to break the cycle by loading
       * Finalizer in its own independent class loader:
       *
       * System class loader -> Application class loader -> ReferenceMap -> FinalizableReferenceQueue ->
       * etc. -> Decoupled class loader -> Finalizer
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

       *
       * This means that dynamically loaded web applications and OSGi bundles can't be unloaded.
       *
       * If the library is loaded in an application class loader, we try to break the cycle by loading
       * Finalizer in its own independent class loader:
       *
       * System class loader -> Application class loader -> ReferenceMap -> FinalizableReferenceQueue ->
       * etc. -> Decoupled class loader -> Finalizer
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
          String expected = (howManyChecked % 2 == 0) ? "a" : "b";
          assertEquals(expected, string);
          if (howManyChecked++ == 5) {
            break;
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

              }
    
              @Override
              public void remove() {
                listIter.remove();
              }
            };
          }
        };
      }
    
      static <T extends @Nullable Object> Iterator<T> cycle(Iterable<T> iterable) {
        return new Iterator<T>() {
          Iterator<T> iterator = Collections.<T>emptySet().iterator();
    
          @Override
          public boolean hasNext() {
            return true;
          }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
Back to top