Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for caster (0.2 sec)

  1. android/guava/src/com/google/common/hash/Hasher.java

     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface Hasher extends PrimitiveSink {
      @CanIgnoreReturnValue
      @Override
      Hasher putByte(byte b);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(byte[] bytes);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(byte[] bytes, int off, int len);
    
      @CanIgnoreReturnValue
      @Override
      Hasher putBytes(ByteBuffer bytes);
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

       * element in the underlying collection and determine which elements satisfy the filter. When a
       * live view is <i>not</i> needed, it may be faster to copy {@code Iterables.filter(unfiltered,
       * predicate)} and use the copy.
       *
       * <p><b>Warning:</b> {@code predicate} must be <i>consistent with equals</i>, as documented at
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/CharSource.java

       *
       * <p>Since Strings are immutable and built into the jdk we can optimize some operations
       *
       * <ul>
       *   <li>use {@link StringReader} instead of {@link CharSequenceReader}. It is faster since it can
       *       use {@link String#getChars(int, int, char[], int)} instead of copying characters one by
       *       one with {@link CharSequence#charAt(int)}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  4. 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)
  5. android/guava/src/com/google/common/io/ByteSink.java

     *
     * <p>{@code ByteSink} provides two kinds of methods:
     *
     * <ul>
     *   <li><b>Methods that return a stream:</b> These methods should return a <i>new</i>, independent
     *       instance each time they are called. The caller is responsible for ensuring that the
     *       returned stream is closed.
     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/IntMath.java

        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(x == floorPow);
            // fall through
          case FLOOR:
          case DOWN:
            return logFloor;
          case CEILING:
          case UP:
            return logFloor + lessThanBranchFree(floorPow, x);
          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
    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)
  7. android/guava/src/com/google/common/reflect/TypeToInstanceMap.java

     *
     * <p>Generally, implementations don't support {@link #put} and {@link #putAll} because there is no
     * way to check an object at runtime to be an instance of a {@link TypeToken}. Instead, caller
     * should use the type safe {@link #putInstance}.
     *
     * <p>Also, if caller suppresses unchecked warnings and passes in an {@code Iterable<String>} for
     * type {@code Iterable<Integer>}, the map won't be able to detect and throw type error.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 22 01:15:23 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ObjectArrays.java

       * elements than the collection), the element in the array immediately following the end of the
       * collection is set to {@code null}. This is useful in determining the length of the collection
       * <i>only</i> if the caller knows that the collection does not contain any null elements.
       *
       * <p>This method returns the elements in the order they are returned by the collection's
       * iterator.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K 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. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

            case 10:
              k2 ^= (long) toInt(bb.get(9)) << 8; // fall through
            case 9:
              k2 ^= (long) toInt(bb.get(8)); // fall through
            case 8:
              k1 ^= bb.getLong();
              break;
            case 7:
              k1 ^= (long) toInt(bb.get(6)) << 48; // fall through
            case 6:
              k1 ^= (long) toInt(bb.get(5)) << 40; // fall through
            case 5:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.6K bytes
    - Viewed (0)
Back to top