Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for _new (0.23 sec)

  1. tests/query_test.go

    		}
    
    		if len(results) != 2 {
    			t.Errorf("Incorrect users length, expects: 2, got %v", len(results))
    		}
    
    		for idx := range results {
    			results[idx].Name = results[idx].Name + "_new"
    		}
    
    		if err := tx.Save(results).Error; err != nil {
    			t.Fatalf("failed to save users, got error %v", err)
    		}
    
    		return nil
    	}); result.Error != nil || result.RowsAffected != 6 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            if (interpolatedModel.getParent() != null) {
                StringSearchInterpolator ssi = new StringSearchInterpolator();
                ssi.addValueSource(new MapBasedValueSource(request.getSession().getUserProperties()));
                ssi.addValueSource(new MapBasedValueSource(model.getProperties()));
                ssi.addValueSource(new MapBasedValueSource(request.getSession().getSystemProperties()));
                try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                // the defined parallism, while making sure the pool will not
                // be exhausted
                //
                return new ThreadPoolExecutor(
                        parallelism, Integer.MAX_VALUE, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>()) {
                    final AtomicInteger parked = new AtomicInteger();
    
                    @Override
                    public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

       * @return a new, empty hash set with enough capacity to hold {@code expectedSize} elements
       *     without resizing
       * @throws IllegalArgumentException if {@code expectedSize} is negative
       */
      public static <E extends @Nullable Object> HashSet<E> newHashSetWithExpectedSize(
          int expectedSize) {
        return new HashSet<>(Maps.capacity(expectedSize));
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

            return new WrappedNavigableSet(key, (NavigableSet<V>) collection, null);
          } else if (collection instanceof SortedSet) {
            return new WrappedSortedSet(key, (SortedSet<V>) collection, null);
          } else if (collection instanceof Set) {
            return new WrappedSet(key, (Set<V>) collection);
          } else {
            return new WrappedCollection(key, collection, null);
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(Arrays.equals(new String[0], array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArraySingleton() {
        Iterator<String> iterator = Collections.singletonList("a").iterator();
        String[] array = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(new String[] {"a"}, array));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          new ImmutableSortedMap<>(
              ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.<Object>of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
        } else {
          return new ImmutableSortedMap<>(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          if (!wasCancelled) {
            return new Failure(
                new IllegalArgumentException(
                    "get() threw CancellationException, despite reporting isCancelled() == false: "
                        + future,
                    cancellation));
          }
          return new Cancellation(false, cancellation);
        } catch (Exception | Error t) { // sneaky checked exception
          return new Failure(t);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

        checkNotNull(iterable);
        return new Iterator<T>() {
          Iterator<T> iterator = emptyModifiableIterator();
    
          @Override
          public boolean hasNext() {
            /*
             * Don't store a new Iterator until we know the user can't remove() the last returned
             * element anymore. Otherwise, when we remove from the old iterator, we may be invalidating
    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)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                return new ActivationFrame(property, Optional.empty());
            }
    
            private <P> ActivationFrame nextFrame(String property, Function<P, InputLocationTracker> child) {
                @SuppressWarnings("unchecked")
                final Optional<P> parent = (Optional<P>) stk.peek().parent;
                return new ActivationFrame(property, parent.map(child));
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
Back to top