Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 506 for elseif (0.14 sec)

  1. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

              // same freshness, generate again.
              return invokeGeneratorMethod(emptyGenerate);
            } else {
              // Cannot use empty generator. Proceed with other generators.
            }
          } else {
            // never generated empty instance for this type before.
            Object emptyInstance = invokeGeneratorMethod(emptyGenerate);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  2. guava/pom.xml

          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <!-- Passing `-subpackages com.google.common` breaks things, so we explicitly exclude everything else instead. -->
              <!-- excludePackageNames requires specification of packages separately from "all subpackages".
                   https://issues.apache.org/jira/browse/MJAVADOC-584 -->
              <excludePackageNames>
    XML
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 11 16:37:45 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

            if (expected == 0) {
              assertWithMessage(x + ", " + y).that(actual).isEqualTo(expected);
            } else if (expected < 0) {
              assertWithMessage(x + ", " + y + " (expected: " + expected + ", actual" + actual + ")")
                  .that(actual < 0)
                  .isTrue();
            } else {
              assertWithMessage(x + ", " + y + " (expected: " + expected + ", actual" + actual + ")")
                  .that(actual > 0)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        CacheTesting.checkValidState(cache);
      }
    
      /**
       * Tests that when a single entry exceeds the segment's max weight, the new entry is immediately
       * evicted and nothing else.
       */
      public void testEviction_maxWeight_entryTooBig() {
        CountingRemovalListener<Integer, Integer> removalListener = countingRemovalListener();
        IdentityLoader<Integer> loader = identityLoader();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          assertBitEquals(VALUES[i], aa.get(i));
          aa.lazySet(i, -3.0);
          assertBitEquals(-3.0, aa.get(i));
        }
      }
    
      /** compareAndSet succeeds in changing value if equal to expected else fails */
      public void testCompareAndSet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
          double prev = 0.0;
          double unused = Math.E + Math.PI;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterables.java

       *     Object)
       */
      public static int frequency(Iterable<?> iterable, @CheckForNull Object element) {
        if ((iterable instanceof Multiset)) {
          return ((Multiset<?>) iterable).count(element);
        } else if ((iterable instanceof Set)) {
          return ((Set<?>) iterable).contains(element) ? 1 : 0;
        }
        return Iterators.frequency(iterable.iterator(), element);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Strings.java

          @CheckForNull String template, @CheckForNull @Nullable Object... args) {
        template = String.valueOf(template); // null -> "null"
    
        if (args == null) {
          args = new Object[] {"(Object[])null"};
        } else {
          for (int i = 0; i < args.length; i++) {
            args[i] = lenientToString(args[i]);
          }
        }
    
        // start substituting the arguments into the '%s' placeholders
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
          return new RegularImmutableSortedSet<>(ImmutableList.of(), comparator);
        }
      }
    
      /**
       * Returns the empty immutable sorted set.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                      try {
                        int mod = index % 3;
                        if (mod == 0) {
                          value = cache.get(key);
                        } else if (mod == 1) {
                          value = cache.getUnchecked(key);
                        } else {
                          cache.refresh(key);
                          value = cache.get(key);
                        }
                        result.set(index, value);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Throwables.java

        propagateIfPossible(throwable, declaredType2);
      }
    
      /**
       * Propagates {@code throwable} as-is if it is an instance of {@link RuntimeException} or {@link
       * Error}, or else as a last resort, wraps it in a {@code RuntimeException} and then propagates.
       *
       * <p>This method always throws an exception. The {@code RuntimeException} return type allows
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
Back to top