Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 683 for unchecked (0.55 sec)

  1. android/guava/src/com/google/common/collect/Cut.java

        }
        // same value. below comes before above
        return Booleans.compare(this instanceof AboveValue, that instanceof AboveValue);
      }
    
      C endpoint() {
        return endpoint;
      }
    
      @SuppressWarnings("unchecked") // catching CCE
      @Override
      public boolean equals(@CheckForNull Object obj) {
        if (obj instanceof Cut) {
          // It might not really be a Cut<C>, but we'll catch a CCE if it's not
          Cut<C> that = (Cut<C>) obj;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        }
      }
    
      @SuppressWarnings("unchecked") // C can only be @Nullable Character or Character
      protected @NonNull C cellValue(Character character) {
        return (C) character;
      }
    
      // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs)
      @SuppressWarnings("unchecked")
      protected C nullableCellValue(@Nullable Character character) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TableCollectionTest.java

            @SuppressWarnings("unchecked")
            Cell<String, Integer, Character> cell = (Cell<String, Integer, Character>) element;
            table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
          }
          return table.cellSet();
        }
    
        abstract Table<String, Integer, Character> createTable();
    
        @Override
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

      /**
       * Returns an empty {@code ImmutableClassToInstanceMap}.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       *
       * @since 19.0
       */
      @SuppressWarnings("unchecked")
      public static <B> ImmutableClassToInstanceMap<B> of() {
        return (ImmutableClassToInstanceMap<B>) EMPTY;
      }
    
      /**
       * Returns an {@code ImmutableClassToInstanceMap} containing a single entry.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingSortedMap.java

        public StandardKeySet() {
          super(ForwardingSortedMap.this);
        }
      }
    
      // unsafe, but worst case is a CCE or NPE is thrown, which callers will be expecting
      @SuppressWarnings({"unchecked", "nullness"})
      static int unsafeCompare(
          @CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) {
        if (comparator == null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
                      public Map<Class, Impl> create(Object... elements) {
                        ImmutableClassToInstanceMap.Builder<Impl> builder =
                            ImmutableClassToInstanceMap.builder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

              assertEquals(Ordering.natural().max(filtered), first);
            } catch (NoSuchElementException e) {
              assertTrue(filtered.isEmpty());
            }
          }
        }
    
        @SuppressWarnings("unchecked")
        public void testHeadSet() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            for (int i = 0; i < 10; i++) {
              assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        CANADA,
        CHILE,
        JAPAN,
        SWITZERLAND,
        UK
      }
    
      public static final class EnumHashBiMapGenerator implements TestBiMapGenerator<Country, String> {
        @SuppressWarnings("unchecked")
        @Override
        public BiMap<Country, String> create(Object... entries) {
          BiMap<Country, String> result = EnumHashBiMap.create(Country.class);
          for (Object o : entries) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

                  return edge;
                }
              } else {
                return edge;
              }
            }
            return endOfData();
          }
        };
      }
    
      @SuppressWarnings("unchecked")
      @Override
      @CheckForNull
      public V value(N node) {
        checkNotNull(node);
        Object value = adjacentNodeValues.get(node);
        if (value == PRED) {
          return null;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 18K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/UncheckedTimeoutException.java

     */
    
    package com.google.common.util.concurrent;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import javax.annotation.CheckForNull;
    
    /**
     * Unchecked version of {@link java.util.concurrent.TimeoutException}.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.4K bytes
    - Viewed (0)
Back to top