Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 139 for master (0.2 sec)

  1. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testDecodes(ignoreCase, "666F6F626172", "foobar");
        testDecodes(ignoreCase, "666f6f626172", "foobar");
        testDecodes(ignoreCase, "666F6f626172", "foobar");
      }
    
      // order the methods are called should not matter
      public void testBase16IgnoreCaseLowerCase() {
        BaseEncoding ignoreCase = base16().ignoreCase().lowerCase();
        assertThat(ignoreCase).isNotSameInstanceAs(base16());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Converter.java

       * signatures as the methods below, rather than overriding the same doForward and doBackward
       * methods as implementations of normal converters do?
       *
       * But no matter what we do, it's worth remembering that the resulting code is going to be unsound
       * in the presence of LegacyConverter, at least in the case of users who view the converter as a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      `Take off your hat,' the King said to the Hatter.
    
      `It isn't mine,' said the Hatter.
    
      `Stolen!' the King exclaimed, turning to the jury, who
    instantly made a memorandum of the fact.
    
      `I keep them to sell,' the Hatter added as an explanation;
    `I've none of my own.  I'm a hatter.'
    
      Here the Queen put on her spectacles, and began staring at the
    Hatter, who turned pale and fidgeted.
    
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Lists.java

        int size = thisList.size();
        if (size != otherList.size()) {
          return false;
        }
        if (thisList instanceof RandomAccess && otherList instanceof RandomAccess) {
          // avoid allocation and use the faster loop
          for (int i = 0; i < size; i++) {
            if (!Objects.equal(thisList.get(i), otherList.get(i))) {
              return false;
            }
          }
          return true;
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  5. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ExecutorService executor = newSingleThreadExecutor();
        Future<V> waiter =
            executor.submit(
                new Callable<V>() {
                  @Override
                  public V call() throws Exception {
                    return input.get();
                  }
                });
    
        try {
          return getUninterruptibly(waiter, timeout, unit);
        } catch (ExecutionException e) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/anotherpackage/SomeClassThatDoesNotUseNullable.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.testing.anotherpackage;
    
    /** Does not check null, but should not matter since it's in a different package. */
    @SuppressWarnings("unused") // For use by NullPointerTester
    public class SomeClassThatDoesNotUseNullable {
    
      void packagePrivateButDoesNotCheckNull(String s) {}
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Apr 27 17:06:02 GMT 2012
    - 1.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/IntMath.java

     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class IntMath {
      // NOTE: Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
    
      @VisibleForTesting static final int MAX_SIGNED_POWER_OF_TWO = 1 << (Integer.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
    - 23.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Bytes.java

       * moved to index "distance", and the element at index {@code i} ends up at index {@code (distance
       * + i) mod array.length}. This is equivalent to {@code Collections.rotate(Bytes.asList(array),
       * distance)}, but is somewhat faster.
       *
       * <p>The provided "distance" may be negative, which will rotate left.
       *
       * @since 32.0.0
       */
      public static void rotate(byte[] array, int distance) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

                return current;
              }
            } else {
              // We know it's an "E" because it already exists in the map.
              @SuppressWarnings("unchecked")
              E casted = (E) element;
    
              if (countMap.replace(casted, current, current - occurrences)) {
                return current;
              }
            }
            // If we're still here, there was a race, so just try again.
          }
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
Back to top