Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2131 - 2140 of 6,873 for _return (0.07 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int copyPreSizedArrayList(int reps) {
        int size = this.size;
        int tmp = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayListWithCapacity(size);
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          tmp += ImmutableList.copyOf(builder).size();
        }
        return tmp;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

      @Override
      protected Collection<E> actualContents() {
        return collection;
      }
    
      // TODO: dispose of this once collection is encapsulated.
      @Override
      @CanIgnoreReturnValue
      protected Collection<E> resetContainer(Collection<E> newContents) {
        collection = super.resetContainer(newContents);
        return collection;
      }
    
      /** @see AbstractContainerTester#resetContainer() */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

         *
         * @param <E>
         *            要素の型
         * @param value
         *            反復子が返す唯一の値
         * @return {@link SingleValueIterator}をラップした{@link Iterable}
         */
        public static <E> Iterable<E> iterable(final E value) {
            return () -> new SingleValueIterator<>(value);
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param value
         *            反復子が返す唯一の値
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int copyPreSizedArrayList(int reps) {
        int size = this.size;
        int tmp = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayListWithCapacity(size);
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          tmp += ImmutableList.copyOf(builder).size();
        }
        return tmp;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/dfs/DfsReferralDataInternal.java

        /**
         * Not exactly sure what that is all about, certainly legacy stuff
         * 
         * @return resolveHashes
         */
        boolean isResolveHashes ();
    
    
        /**
         * @return whether this refrral needs to be resolved further
         */
        boolean isIntermediate ();
    
    
        /**
         * @param next
         * @return new referral, combining a chain of referrals
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/lifecycle/Execution.java

        } // -- void addGoal( String )
    
        /**
         * Get configuration to pass to the goals.
         *
         * @return Object
         */
        public Object getConfiguration() {
            return this.configuration;
        } // -- Object getConfiguration()
    
        /**
         * Method getGoals.
         *
         * @return List
         */
        public java.util.List<String> getGoals() {
            if (this.goals == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. cmd/shared-lock.go

    		case <-ctx2.Done():
    		// The lock acquirer decides to cancel, exit this goroutine
    		case <-ctx.Done():
    		}
    
    		cancel()
    	}()
    	return ctx, cancel
    }
    
    func (ld sharedLock) GetLock(ctx context.Context) (context.Context, context.CancelFunc) {
    	l := <-ld.lockContext
    	return mergeContext(l.Context(), ctx)
    }
    
    func newSharedLock(ctx context.Context, objAPI ObjectLayer, lockName string) *sharedLock {
    	l := &sharedLock{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 13 09:26:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_test_util.cc

      if (TF_GetCode(status) != TF_OK) return nullptr;
    
      TFE_OpAddInput(op, value_handle.get(), status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    
      num_retvals = 0;
      TFE_Execute(op, nullptr, &num_retvals, status);
      TFE_DeleteOp(op);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      CHECK_EQ(0, num_retvals);
    
      TF_DeleteStatus(status);
    
      return var_handle;
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/Pair.java

            if (this == obj) {
                return true;
            }
            if (obj == null) {
                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            @SuppressWarnings("unchecked")
            final Pair<T1, T2> other = (Pair<T1, T2>) obj;
            if (first == null) {
                if (other.first != null) {
                    return false;
                }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSet.copyOf(elements);
        }
      }
    
      public static class ImmutableSetUnsizedBuilderGenerator extends TestStringSetGenerator {
        @Override
        protected Set<String> create(String[] elements) {
          ImmutableSet.Builder<String> builder = ImmutableSet.builder();
          for (String e : elements) {
            builder.add(e);
          }
          return builder.build();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top