Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 72 for Kasper (0.18 sec)

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

        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
      public void testFromNullable_null() {
        // not promised by spec, but easier to test
        assertSame(Optional.absent(), Optional.fromNullable(null));
      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LongMath.java

     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class LongMath {
      // NOTE: Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
    
      @VisibleForTesting static final long MAX_SIGNED_POWER_OF_TWO = 1L << (Long.SIZE - 2);
    
      /**
       * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

        return CollectSpliterators.indexed(size(), SPLITERATOR_CHARACTERISTICS, this::get);
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        // this loop is faster for RandomAccess instances, which ImmutableLists are
        int size = size();
        for (int i = 0; i < size; i++) {
          dst[offset + i] = get(i);
        }
        return offset + size;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/collect/Multisets.java

       * <p>Many of the filtered multiset's methods, such as {@code size()}, iterate across every
       * element in the underlying multiset and determine which elements satisfy the filter. When a live
       * view is <i>not</i> needed, it may be faster to copy the returned multiset and use the copy.
       *
       * <p><b>Warning:</b> {@code predicate} must be <i>consistent with equals</i>, as documented at
       * {@link Predicate#apply}. Do not provide a predicate such as {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        return CollectCollectors.toImmutableSortedMap(
            comparator, keyFunction, valueFunction, mergeFunction);
      }
    
      /*
       * TODO(kevinb): Confirm that ImmutableSortedMap is faster to construct and
       * uses less memory than TreeMap; then say so in the class Javadoc.
       */
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
    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)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/Utils.java

            }
            return clazz.cast(o);
        }
    
        static <U, V> List<V> map(Collection<U> list, Function<U, V> mapper) {
            return list.stream().map(mapper).collect(Collectors.toList());
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

    import java.util.concurrent.Future;
    import junit.framework.TestCase;
    
    /**
     * Basher test for {@link AtomicLongMap}.
     *
     * @author mike nonemacher
     */
    @J2ktIncompatible // threads
    @GwtIncompatible // threads
    public class AtomicLongMapBasherTest extends TestCase {
      private final Random random = new Random(301);
    
      public void testModify_basher() throws Exception {
        int nTasks = 3000;
        int nThreads = 100;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Predicate.java

     * Otherwise, at least reduce <i>explicit</i> dependencies on this type by using lambda expressions
     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
     * <p>To use a reference of this type (say, named {@code guavaPredicate}) in a context where {@code
     * java.util.function.Predicate} is expected, use the method reference {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

                final ObjectMapper mapper = new ObjectMapper();
                Arrays.stream(FileUtil.readUTF8(dataPath).split("\n")).reduce((prev, line) -> {
                    try {
                        if (StringUtil.isBlank(prev)) {
                            final Map<String, Map<String, String>> result =
                                    mapper.readValue(line, new TypeReference<Map<String, Map<String, String>>>() {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 84.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/OptionalTest.java

        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
      public void testFromNullable_null() {
        // not promised by spec, but easier to test
        assertSame(Optional.absent(), Optional.fromNullable(null));
      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top