Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 146 for asarray (0.19 sec)

  1. android/guava/src/com/google/common/reflect/Types.java

          this.upperBounds = JavaVersion.CURRENT.usedInGenericType(upperBounds);
        }
    
        @Override
        public Type[] getLowerBounds() {
          return toArray(lowerBounds);
        }
    
        @Override
        public Type[] getUpperBounds() {
          return toArray(upperBounds);
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof WildcardType) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
          Object array = Array.newInstance(componentType.getRawType(), 1);
          Array.set(array, 0, generate(componentType));
          return array;
        }
        Method emptyGenerate = EMPTY_GENERATORS.get(rawType);
        if (emptyGenerate != null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
          Object array = Array.newInstance(componentType.getRawType(), 1);
          Array.set(array, 0, generate(componentType));
          return array;
        }
        Method emptyGenerate = EMPTY_GENERATORS.get(rawType);
        if (emptyGenerate != null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

      }
    
      static <T extends @Nullable Object> T[] toArray(Iterable<? extends T> iterable, T[] array) {
        Collection<? extends T> collection = castOrCopyToCollection(iterable);
        return collection.toArray(array);
      }
    
      /**
       * Copies an iterable's elements into an array.
       *
       * @param iterable the iterable to copy
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

        private final T[] array;
    
        ArrayItr(T[] array, int position) {
          super(array.length, position);
          this.array = array;
        }
    
        @Override
        @ParametricNullness
        protected T get(int index) {
          return array[index];
        }
      }
    
      /**
       * Returns an iterator containing only {@code value}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 20 03:33:06 GMT 2024
    - 50.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
      private static final class Dummies {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  7. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
      private static final class Dummies {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Ordering.java

            // faster than using the implementation for Iterator, which is
            // specialized for k much smaller than n.
    
            @SuppressWarnings("unchecked") // c only contains E's and doesn't escape
            E[] array = (E[]) collection.toArray();
            Arrays.sort(array, this);
            if (array.length > k) {
              array = Arrays.copyOf(array, k);
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Hashing.java

        // We can't use Iterables.toArray() here because there's no hash->collect dependency
        List<HashFunction> list = new ArrayList<>();
        for (HashFunction hashFunction : hashFunctions) {
          list.add(hashFunction);
        }
        checkArgument(!list.isEmpty(), "number of hash functions (%s) must be > 0", list.size());
        return new ConcatenatedHashFunction(list.toArray(new HashFunction[0]));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  10. .cm/plugins/filters/byCodeowner/ignore/index.js

    // A simple implementation of make-array
    function makeArray (subject) {
        return Array.isArray(subject)
            ? subject
            : [subject]
    }
    
    const EMPTY = ''
    const SPACE = ' '
    const ESCAPE = '\\'
    const REGEX_TEST_BLANK_LINE = /^\s+$/
    const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/
    const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
    const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
    const REGEX_SPLITALL_CRLF = /\r?\n/g
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top