Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Hastings (0.27 sec)

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

        return emptyListIterator();
      }
    
      /**
       * Returns the empty iterator.
       *
       * <p>The {@link Iterable} equivalent of this method is {@link ImmutableSet#of()}.
       */
      // Casting to any type is safe since there are no actual elements.
      @SuppressWarnings("unchecked")
      static <T extends @Nullable Object> UnmodifiableListIterator<T> emptyListIterator() {
        return (UnmodifiableListIterator<T>) ArrayItr.EMPTY;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableBiMap.java

        return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction);
      }
    
      /**
       * Returns the empty bimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableBiMap<K, V> of() {
        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Cut.java

      @Override
      public abstract int hashCode();
    
      /*
       * The implementation neither produces nor consumes any non-null instance of type C, so
       * casting the type parameter is safe.
       */
      @SuppressWarnings("unchecked")
      static <C extends Comparable> Cut<C> belowAll() {
        return (Cut<C>) BelowAll.INSTANCE;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction) {
        return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction);
      }
    
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableBiMap<K, V> of() {
        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/OptionalTest.java

      private static FluentIterable<? extends Number> getSomeNumbers() {
        return FluentIterable.from(ImmutableList.<Number>of());
      }
    
      /*
       * The following tests demonstrate the shortcomings of or() and test that the casting workaround
       * mentioned in the method Javadoc does in fact compile.
       */
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeError1() {
    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)
  6. guava/src/com/google/common/base/Throwables.java

        }
        return Collections.unmodifiableList(causes);
      }
    
      /**
       * Returns {@code throwable}'s cause, cast to {@code expectedCauseType}.
       *
       * <p>Prefer this method instead of manually casting an exception's cause. For example, {@code
       * (IOException) e.getCause()} throws a {@link ClassCastException} that discards the original
       * exception {@code e} if the cause is not an {@link IOException}, but {@code
    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)
  7. android/guava/src/com/google/common/base/Throwables.java

        }
        return Collections.unmodifiableList(causes);
      }
    
      /**
       * Returns {@code throwable}'s cause, cast to {@code expectedCauseType}.
       *
       * <p>Prefer this method instead of manually casting an exception's cause. For example, {@code
       * (IOException) e.getCause()} throws a {@link ClassCastException} that discards the original
       * exception {@code e} if the cause is not an {@link IOException}, but {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/LongMath.java

         *          since casting to double is nondecreasing.
         *          Note that the right-hand inequality is no longer strict.
         * Math.sqrt(k * k) <= Math.sqrt(x) <= Math.sqrt((k + 1) * (k + 1))
         *          since Math.sqrt is monotonic.
         * (long) Math.sqrt(k * k) <= (long) Math.sqrt(x) <= (long) Math.sqrt((k + 1) * (k + 1))
         *          since casting to long is monotonic
    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)
  9. android/guava/src/com/google/common/base/Ascii.java

       */
      private static int getAlphaIndex(char c) {
        // Fold upper-case ASCII to lower-case and make zero-indexed and unsigned (by casting to char).
        return (char) ((c | CASE_MASK) - 'a');
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

      }
    
      /**
       * Returns the empty multimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting is safe because the multimap will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSetMultimap<K, V> of() {
        return (ImmutableSetMultimap<K, V>) EmptyImmutableSetMultimap.INSTANCE;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
Back to top