Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Sarraf (0.42 sec)

  1. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableList.java

        Object[] array = new Object[12 + others.length];
        array[0] = e1;
        array[1] = e2;
        array[2] = e3;
        array[3] = e4;
        array[4] = e5;
        array[5] = e6;
        array[6] = e7;
        array[7] = e8;
        array[8] = e9;
        array[9] = e10;
        array[10] = e11;
        array[11] = e12;
        System.arraycopy(others, 0, array, 12, others.length);
        return construct(array);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testForArrayLengthWithPositionBoundaryCases() {
        String[] array = {"foo", "bar"};
        assertFalse(Iterators.forArrayWithPosition(array, 2).hasNext());
        try {
          Iterators.forArrayWithPosition(array, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          Iterators.forArrayWithPosition(array, 3);
          fail();
        } catch (IndexOutOfBoundsException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

          ImmutableSet<E> set = (ImmutableSet<E>) elements;
          if (!set.isPartialView()) {
            return set;
          }
        }
        Object[] array = elements.toArray();
        return construct(array.length, array);
      }
    
      /**
       * Returns an immutable set containing each of {@code elements}, minus duplicates, in the order
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        private int[] counts;
    
        /*
         * The number of used positions in the elements array.  We deduplicate periodically, so this
         * may fluctuate up and down.
         */
        private int length;
    
        // True if we just called build() and the elements array is being used by a created ISM, meaning
        // we shouldn't modify that array further.
        private boolean forceCopyElements;
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                Errors.DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE,
                Errors.DELEGATE_PD_METHOD_NONE_APPLICABLE,
            )
    
            private val DiagnosticFactoryForDeprecation<*, *, *>.factories: Array<DiagnosticFactoryWithPsiElement<*, *>>
                get() = arrayOf(warningFactory, errorFactory)
        }
    
        override val token: KtLifetimeToken
            get() = analysisSession.token
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          if (!original.isPartialView()) {
            return original;
          }
        }
        @SuppressWarnings("unchecked") // elements only contains E's; it's safe.
        E[] array = (E[]) Iterables.toArray(elements);
        return construct(comparator, array.length, array);
      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by the given {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

          }
          /*
           * If entries is full, then this implementation may end up using the entries array
           * directly and writing over the entry objects with non-terminal entries, but this is
           * safe; if this Builder is used further, it will grow the entries array (so it can't
           * affect the original array), and future build() calls will always copy any entry
           * objects that cannot be safely reused.
           */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        return fromEntries(comparator, sameComparator, entryArray, entryArray.length);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMultiset.java

          if (contents.size() == 0) {
            return of();
          }
          if (isLinkedHash) {
            // we need ObjectCountHashMap-backed contents, with its keys and values array in direct
            // insertion order
            contents = new ObjectCountHashMap<E>(contents);
            isLinkedHash = false;
          }
          buildInvoked = true;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top