Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 365 for operator (0.15 sec)

  1. guava/src/com/google/common/collect/ImmutableList.java

            return new RegularImmutableList<>(elementsWithoutTrailingNulls);
        }
      }
    
      ImmutableList() {}
    
      // This declaration is needed to make List.iterator() and
      // ImmutableCollection.iterator() consistent.
      @Override
      public UnmodifiableIterator<E> iterator() {
        return listIterator();
      }
    
      @Override
      public UnmodifiableListIterator<E> listIterator() {
        return listIterator(0);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  2. android/guava/src/com/google/common/math/LongMath.java

       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
       * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3">
       *     Remainder Operator</a>
       */
      @GwtIncompatible // TODO
      public static int mod(long x, int m) {
        // Cast is safe because the result is guaranteed in the range [0, m)
        return (int) mod(x, (long) m);
      }
    
      /**
    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)
  3. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

          // interact poorly with the reentrancy-avoiding behavior of this executor - when the operation
          // before the cancelled future completes, it will synchronously complete both the newFuture
          // from the cancelled operation and its own. This can cause one runnable to queue two tasks,
          // breaking the invariant this method relies on to iteratively run the next task after the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/IntMath.java

       * mod(8, 4) == 0
       * }</pre>
       *
       * @throws ArithmeticException if {@code m <= 0}
       * @see <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.17.3">
       *     Remainder Operator</a>
       */
      public static int mod(int x, int m) {
        if (m <= 0) {
          throw new ArithmeticException("Modulus " + m + " must be > 0");
        }
        int result = x % m;
    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)
  5. android/guava/src/com/google/common/collect/Iterables.java

          @Override
          public Iterator<T> iterator() {
            if (iterable instanceof List) {
              final List<T> list = (List<T>) iterable;
              int toSkip = Math.min(list.size(), numberToSkip);
              return list.subList(toSkip, list.size()).iterator();
            }
            final Iterator<T> iterator = iterable.iterator();
    
            Iterators.advance(iterator, numberToSkip);
    
            /*
    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)
  6. android/guava/src/com/google/common/collect/Multisets.java

          }
    
          @Override
          Iterator<E> elementIterator() {
            throw new AssertionError("should never be called");
          }
    
          @Override
          Iterator<Entry<E>> entryIterator() {
            final Iterator<? extends Entry<? extends E>> iterator1 = multiset1.entrySet().iterator();
            final Iterator<? extends Entry<? extends E>> iterator2 = multiset2.entrySet().iterator();
    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)
  7. guava/src/com/google/common/collect/ImmutableMultiset.java

        } else {
          return RegularImmutableMultiset.create(entries);
        }
      }
    
      ImmutableMultiset() {}
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        final Iterator<Entry<E>> entryIterator = entrySet().iterator();
        return new UnmodifiableIterator<E>() {
          int remaining;
          @CheckForNull E element;
    
          @Override
          public boolean hasNext() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Joiner.java

          throws IOException {
        return appendTo(appendable, parts.iterator());
      }
    
      /**
       * Appends the string representation of each of {@code parts}, using the previously configured
       * separator between each, to {@code appendable}.
       *
       * @since 11.0
       */
      @CanIgnoreReturnValue
      public <A extends Appendable> A appendTo(A appendable, Iterator<? extends @Nullable Object> parts)
          throws IOException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeMultiset.java

        }
        return (node == header || !range.contains(node.getElement())) ? null : node;
      }
    
      @Override
      Iterator<E> elementIterator() {
        return Multisets.elementIterator(entryIterator());
      }
    
      @Override
      Iterator<Entry<E>> entryIterator() {
        return new Iterator<Entry<E>>() {
          @CheckForNull AvlNode<E> current = firstNode();
          @CheckForNull Entry<E> prevEntry;
    
          @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      @Override
      public Comparator<? super E> comparator() {
        return comparator;
      }
    
      @Override // needed to unify the iterator() methods in Collection and SortedIterable
      public abstract UnmodifiableIterator<E> iterator();
    
      /**
       * {@inheritDoc}
       *
       * <p>This method returns a serializable {@code ImmutableSortedSet}.
       *
    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)
Back to top