Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for Bastos (0.2 sec)

  1. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      private static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // This one-liner saves us from some ugly casts
      protected Entry<K, V> entry(K key, V value) {
        return Helpers.mapEntry(key, value);
      }
    
      @Override
      protected void expectContents(Collection<Entry<K, V>> expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

      public void testToTableNullMerge() {
        // TODO github.com/google/guava/issues/6824 - the null merge feature is not compatible with the
        // current nullness annotation of the mergeFunction parameter. Work around with casts.
        BinaryOperator<@Nullable Integer> mergeFunction = (v1, v2) -> null;
        Collector<Cell<String, String, Integer>, ?, Table<String, String, Integer>> collector =
            TableCollectors.toTable(
                Cell::getRowKey,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        }
    
        @Override
        public K[] createArray(int length) {
          // TODO: with appropriate refactoring of OneSizeGenerator, we can perhaps
          // tidy this up and get rid of the casts here and in
          // MapValueCollectionGenerator.
    
          return ((TestMapGenerator<K, V>) mapGenerator.getInnerGenerator()).createKeyArray(length);
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SparseImmutableTable.java

      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap;
        return ImmutableMap.<C, Map<R, V>>copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/GeneralRange.java

        return comparator;
      }
    
      boolean hasLowerBound() {
        return hasLowerBound;
      }
    
      boolean hasUpperBound() {
        return hasUpperBound;
      }
    
      boolean isEmpty() {
        // The casts are safe because of the has*Bound() checks.
        return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint())))
            || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint())));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMaker.java

       * having a hash table of size eight. Providing a large enough estimate at construction time
       * avoids the need for expensive resizing operations later, but setting this value unnecessarily
       * high wastes memory.
       *
       * @throws IllegalArgumentException if {@code initialCapacity} is negative
       * @throws IllegalStateException if an initial capacity was already set
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilder.java

       * having a hash table of size eight. Providing a large enough estimate at construction time
       * avoids the need for expensive resizing operations later, but setting this value unnecessarily
       * high wastes memory.
       *
       * @return this {@code CacheBuilder} instance (for chaining)
       * @throws IllegalArgumentException if {@code initialCapacity} is negative
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/GeneralRange.java

        return comparator;
      }
    
      boolean hasLowerBound() {
        return hasLowerBound;
      }
    
      boolean hasUpperBound() {
        return hasUpperBound;
      }
    
      boolean isEmpty() {
        // The casts are safe because of the has*Bound() checks.
        return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint())))
            || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint())));
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/DenseImmutableTable.java

        }
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap;
        return ImmutableMap.<C, Map<R, V>>copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

    import junit.framework.TestSuite;
    
    /**
     * Test suite covering {@link Ints#asList(int[])}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("cast") // redundant casts are intentional and harmless
    public class IntArrayAsListTest extends TestCase {
    
      private static List<Integer> asList(Integer[] values) {
        int[] temp = new int[values.length];
        for (int i = 0; i < values.length; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.7K bytes
    - Viewed (0)
Back to top