Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 506 for elseif (0.21 sec)

  1. android/guava/src/com/google/common/util/concurrent/Monitor.java

              try {
                if (guard.isSatisfied()) {
                  satisfied = true;
                } else {
                  final long remainingNanos;
                  if (startTime == 0L) {
                    startTime = initNanoTime(timeoutNanos);
                    remainingNanos = timeoutNanos;
                  } else {
                    remainingNanos = remainingNanos(startTime, timeoutNanos);
                  }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/Quantiles.java

        int high = requiredTo;
        while (high > low + 1) {
          int mid = (low + high) >>> 1;
          if (allRequired[mid] > centerFloor) {
            high = mid;
          } else if (allRequired[mid] < centerFloor) {
            low = mid;
          } else {
            return mid; // allRequired[mid] = centerFloor, so we can't get closer than that
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

            checkNotNull(entry.getValue());
            @SuppressWarnings("unchecked") // all supported methods are covariant
            Entry<K, V> immutableEntry = (Entry<K, V>) entry;
            entries.add(immutableEntry);
          } else {
            entries.add(entryOf((K) entry.getKey(), (V) entry.getValue()));
          }
          return this;
        }
    
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(Map<? extends K, ? extends V> map) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

          // This line doesn't hold - see the Javadoc comments above.
          // assertEquals(expectedValue, oldValue);
          assertFalse(map.containsKey(keyToRemove));
          assertEquals(initialSize - 1, map.size());
        } else {
          try {
            map.remove(keyToRemove);
            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
        assertInvariants(map);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      }
    
      private void setSucceeds(int pred, int succ) {
        if (pred == ENDPOINT) {
          firstEntry = succ;
        } else {
          setSuccessor(pred, succ);
        }
    
        if (succ == ENDPOINT) {
          lastEntry = pred;
        } else {
          setPredecessor(succ, pred);
        }
      }
    
      @Override
      void insertEntry(int entryIndex, @ParametricNullness E object, int hash, int mask) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

        checkPositionIndexes(fromIndex, toIndex, size());
        int length = toIndex - fromIndex;
        if (length == size()) {
          return this;
        } else if (length == 0) {
          return of();
        } else if (length == 1) {
          return of(get(fromIndex));
        } else {
          return subListUnchecked(fromIndex, toIndex);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  7. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

      private MinimalIterable(Iterator<E> iterator) {
        this.iterator = iterator;
      }
    
      @Override
      public Iterator<E> iterator() {
        if (iterator == null) {
          // TODO: throw something else? Do we worry that people's code and tests
          // might be relying on this particular type of exception?
          throw new IllegalStateException();
        }
        try {
          return iterator;
        } finally {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClusterException.java

        }
        if (exceptions.size() == 1) {
          Throwable temp = exceptions.iterator().next();
          if (temp instanceof RuntimeException) {
            return (RuntimeException) temp;
          } else {
            return new RuntimeException(temp);
          }
        }
        return new ClusterException(exceptions);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          if (obj instanceof DelegatingInvocationHandlerWithEquals) {
            DelegatingInvocationHandlerWithEquals that = (DelegatingInvocationHandlerWithEquals) obj;
            return delegate.equals(that.delegate);
          } else {
            return false;
          }
        }
    
        @Override
        public int hashCode() {
          return delegate.hashCode();
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          throws IOException {
        if (singleByte) {
          for (int i = off; i < off + len; i++) {
            out.write(b[i]);
          }
        } else {
          out.write(b, off, len);
        }
        out.flush(); // for coverage
      }
    
      // TODO(chrisn): only works if we ensure we have crossed file threshold
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
Back to top