Search Options

Results per page
Sort
Preferred Languages
Advance

Results 631 - 640 of 1,539 for result1 (0.06 sec)

  1. guava-tests/test/com/google/common/base/EnumsTest.java

          Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, constant.name());
          assertThat(result).isPresent();
          shadowConstants.add(result.get());
        }
        assertEquals(ImmutableSet.<Object>copyOf(shadowTestEnum.getEnumConstants()), shadowConstants);
        Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, "blibby");
        assertThat(result).isAbsent();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. callbacks/raw.go

    package callbacks
    
    import (
    	"gorm.io/gorm"
    )
    
    func RawExec(db *gorm.DB) {
    	if db.Error == nil && !db.DryRun {
    		result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		if err != nil {
    			db.AddError(err)
    			return
    		}
    
    		db.RowsAffected, _ = result.RowsAffected()
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Nov 29 01:33:20 UTC 2021
    - 336 bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/GeneralRange.java

      @LazyInit @CheckForNull private transient GeneralRange<T> reverse;
    
      /** Returns the same range relative to the reversed comparator. */
      GeneralRange<T> reverse() {
        GeneralRange<T> result = reverse;
        if (result == null) {
          result =
              new GeneralRange<>(
                  Ordering.from(comparator).reverse(),
                  hasUpperBound,
                  getUpperEndpoint(),
                  getUpperBoundType(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

                T[] result = super.toArray(array);
                if (size() < result.length) {
                  // It works around a GWT bug where elements after last is not
                  // properly null'ed.
                  @Nullable Object[] unsoundlyCovariantArray = result;
                  unsoundlyCovariantArray[size()] = null;
                }
                return result;
              }
            });
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

        assert n1 <= n2;
        if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) {
          // the result will definitely fit into a long
          long result = 1;
          for (int i = n1 + 1; i <= n2; i++) {
            result *= i;
          }
          return BigInteger.valueOf(result);
        }
    
        /*
         * We want each multiplication to have both sides with approximately the same number of digits.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

              expectedThrowable
                  + " is not yet supported by ReflectionFreeAssertThrows. Add an entry for it in the"
                  + " map in that class.");
        }
        Object result;
        try {
          result = supplier.get();
        } catch (Throwable t) {
          if (predicate.apply(t)) {
            // We are careful to set up INSTANCE_OF to match each Predicate to its target Class.
            @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/MutableNetwork.java

       *
       * @return {@code true} if the network was modified as a result of this call
       */
      @CanIgnoreReturnValue
      boolean removeNode(N node);
    
      /**
       * Removes {@code edge} from this network, if it is present.
       *
       * @return {@code true} if the network was modified as a result of this call
       */
      @CanIgnoreReturnValue
      boolean removeEdge(E edge);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

      /** Equivalent to Arrays.copyOfRange(source, from, to, arrayOfType.getClass()). */
      static <T> T[] copy(Object[] source, int from, int to, T[] arrayOfType) {
        T[] result = newArray(arrayOfType, to - from);
        System.arraycopy(source, from, result, 0, to - from);
        return result;
      }
    
      // TODO(user): Move this logic to a utility class.
      @JsType(isNative = true, name = "Array", namespace = JsPackage.GLOBAL)
      private interface NativeArray {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:52:51 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractIterator.java

       * {@code next} invocation that invoked this method. Any further attempts to use the iterator will
       * result in an {@link IllegalStateException}.
       *
       * <p>The implementation of this method may not invoke the {@code hasNext}, {@code next}, or
       * {@link #peek()} methods on this instance; if it does, an {@code IllegalStateException} will
       * result.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

            request.setPom(project.getModel());
    
            try {
                PluginPrefixResult result = pluginPrefixResolver.resolve(request);
    
                Plugin plugin = new Plugin();
                plugin.setGroupId(result.getGroupId());
                plugin.setArtifactId(result.getArtifactId());
    
                return plugin;
            } catch (NoPluginFoundForPrefixException e) {
                return null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top