Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 328 for if (0.15 sec)

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

      @Override
      public boolean equals(@CheckForNull Object object) {
        if (object == this) {
          return true;
        }
        if (!(object instanceof Set)) {
          return false;
        }
    
        Set<?> that = (Set<?>) object;
        if (size() != that.size()) {
          return false;
        } else if (isEmpty()) {
          return true;
        }
    
        if (SortedIterables.hasSameComparator(comparator, that)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

        checkNotNull(node, "node");
    
        GraphConnections<N, V> connections = nodeConnections.get(node);
        if (connections == null) {
          return false;
        }
    
        if (allowsSelfLoops()) {
          // Remove self-loop (if any) first, so we don't get CME while removing incident edges.
          if (connections.removeSuccessor(node) != null) {
            connections.removePredecessor(node);
            --edgeCount;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Oct 21 01:50:30 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

        Throwable cause = e.getCause();
        if (cause == null) {
          throw e;
        }
        if (combineStackTraces) {
          StackTraceElement[] combined =
              ObjectArrays.concat(cause.getStackTrace(), e.getStackTrace(), StackTraceElement.class);
          cause.setStackTrace(combined);
        }
        if (cause instanceof Exception) {
          throw (Exception) cause;
        }
        if (cause instanceof Error) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 27 14:21:11 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  4. CONTRIBUTING.md

    -----------
    
    We make changes to Guava's public [APIs][], including adding new APIs, very
    carefully. Because of this, if you're interested in seeing a new feature in
    Guava, the best approach is to create an [issue][] (or comment on an existing
    issue if there is one) requesting the feature and describing specific use cases
    for it.
    
    If the feature has merit, it will go through a thorough process of API design
    and review. Any code should come after this.
    
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/SmallCharMatcher.java

        int startingIndex = smear(c) & mask;
        int index = startingIndex;
        do {
          if (table[index] == 0) { // Check for empty.
            return false;
          } else if (table[index] == c) { // Check for match.
            return true;
          } else { // Linear probing.
            index = (index + 1) & mask;
          }
          // Check to see if we wrapped around the whole table.
        } while (index != startingIndex);
        return false;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        // Write just enough to not trip the threshold
        if (chunk1 > 0) {
          write(out, data, 0, chunk1, singleByte);
          assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source));
        }
        File file = out.getFile();
        assertNull(file);
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
    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)
  7. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

          V oldValue = delegateMap.put(key, value);
          if (oldValue != null) {
            if (throwIfDuplicateKeys) {
              throw conflictException("key", entryArray[i], entryArray[i].getKey() + "=" + oldValue);
            }
            if (duplicates == null) {
              duplicates = new HashMap<>();
            }
            duplicates.put(key, value);
            dupCount++;
          }
        }
        if (duplicates != null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Closeables.java

       *     threw = false;
       *   } finally {
       *     // If an exception occurs, rethrow it only if threw==false:
       *     Closeables.close(stream, threw);
       *   }
       * }
       * }</pre>
       *
       * @param closeable the {@code Closeable} object to be closed, or null, in which case this method
       *     does nothing
       * @param swallowIOException if true, don't propagate IO exceptions thrown by the {@code close}
       *     methods
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java

       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
      @CheckForNull
      protected Entry<E> standardFirstEntry() {
        Iterator<Entry<E>> entryIterator = entrySet().iterator();
        if (!entryIterator.hasNext()) {
          return null;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

       */
      @CheckForNull @VisibleForTesting transient long[] links;
    
      /** Pointer to the first node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int firstEntry;
    
      /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int lastEntry;
    
      private final boolean accessOrder;
    
      CompactLinkedHashMap() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top