Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for if (0.36 sec)

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

      }
    
      /** Returns {@code true} if {@code iterator} contains {@code element}. */
      public static boolean contains(Iterator<?> iterator, @CheckForNull Object element) {
        if (element == null) {
          while (iterator.hasNext()) {
            if (iterator.next() == null) {
              return true;
            }
          }
        } else {
          while (iterator.hasNext()) {
            if (element.equals(iterator.next())) {
    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/base/Equivalence.java

      }
    
      /**
       * Returns a wrapper of {@code reference} that implements {@link Wrapper#equals(Object)
       * Object.equals()} such that {@code wrap(a).equals(wrap(b))} if and only if {@code equivalent(a,
       * b)}.
       *
       * <p>The returned object is serializable if both this {@code Equivalence} and {@code reference}
       * are serializable (including when {@code reference} is null).
       *
       * @since 10.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          this.counts = new int[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
        }
    
        /** Check if we need to do deduplication and coalescing, and if so, do it. */
        private void maintenance() {
          if (length == elements.length) {
            dedupAndCoalesce(true);
          } else if (forceCopyElements) {
            this.elements = Arrays.copyOf(elements, elements.length);
    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)
  4. android/guava/src/com/google/common/net/HttpHeaders.java

      /** The HTTP {@code If-Match} header field name. */
      public static final String IF_MATCH = "If-Match";
      /** The HTTP {@code If-Modified-Since} header field name. */
      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
      /** The HTTP {@code If-None-Match} header field name. */
      public static final String IF_NONE_MATCH = "If-None-Match";
      /** The HTTP {@code If-Range} header field name. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Function.java

       *       function.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this function does not accept null
       *     arguments
       */
      @ParametricNullness
      T apply(@ParametricNullness F input);
    
      /**
       * <i>May</i> return {@code true} if {@code object} is a {@code Function} that behaves identically
       * to this function.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. guava-gwt/pom.xml

                lines could make c.g.c.base.testModule transitively inherit from extra modules. If some
                of those modules are ones that it uses but forgets to list in its own <inherits>, we'd
                like to get an error. Currently we do, but if we add the extra <inherits> lines, we
                won't.
    
                I have one idea for a better approach, but it's painful, and I haven't tested it: We
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 15:00:55 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Preconditions.java

       * @throws IndexOutOfBoundsException if either index is negative or is greater than {@code size},
       *     or if {@code end} is less than {@code start}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      public static void checkPositionIndexes(int start, int end, int size) {
        // Carefully optimized for execution by hotspot (explanatory comment above)
        if (start < 0 || end < start || end > size) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      // exception for a later buildOrThrow(). If builder is null that means that a duplicate
      // key will lead to an immediate exception. If it is not null then a duplicate key will instead be
      // stored in the builder, which may use it to throw an exception later.
      static <K, V> RegularImmutableMap<K, V> create(
          int n, @Nullable Object[] alternatingKeysAndValues, @Nullable Builder<K, V> builder) {
        if (n == 0) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterables.java

       * @return {@code true} if any elements were removed from the iterable
       * @throws UnsupportedOperationException if the iterable does not support {@code remove()}.
       * @since 2.0
       */
      @CanIgnoreReturnValue
      public static <T extends @Nullable Object> boolean removeIf(
          Iterable<T> removeFrom, Predicate<? super T> predicate) {
        if (removeFrom instanceof RandomAccess && removeFrom instanceof List) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Comparators.java

        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
          while (it.hasNext()) {
            T next = it.next();
            if (comparator.compare(prev, next) > 0) {
              return false;
            }
            prev = next;
          }
        }
        return true;
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is <i>strictly</i>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top