Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for Contains (0.1 sec)

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

      }
    
      /**
       * Delegates to {@link Collection#contains}. Returns {@code false} if the {@code contains} method
       * throws a {@code ClassCastException} or {@code NullPointerException}.
       */
      static boolean safeContains(Collection<?> collection, @CheckForNull Object object) {
        checkNotNull(collection);
        try {
          return collection.contains(object);
        } catch (ClassCastException | NullPointerException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultiset.java

          this.delegate = delegate;
        }
    
        @Override
        E get(int index) {
          return entries.get(index).getElement();
        }
    
        @Override
        public boolean contains(@CheckForNull Object object) {
          return delegate.contains(object);
        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
        @Override
        public int size() {
          return entries.size();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/Graphs.java

          for (N successorNode : graph.successors(node)) {
            if (subgraph.nodes().contains(successorNode)) {
              subgraph.putEdge(node, successorNode);
            }
          }
        }
        return subgraph;
      }
    
      /**
       * Returns the subgraph of {@code graph} induced by {@code nodes}. This subgraph is a new graph
       * that contains all of the nodes in {@code nodes}, and all of the {@link Graph#edges() edges}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/Graphs.java

          for (N successorNode : graph.successors(node)) {
            if (subgraph.nodes().contains(successorNode)) {
              subgraph.putEdge(node, successorNode);
            }
          }
        }
        return subgraph;
      }
    
      /**
       * Returns the subgraph of {@code graph} induced by {@code nodes}. This subgraph is a new graph
       * that contains all of the nodes in {@code nodes}, and all of the {@link Graph#edges() edges}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Iterables.java

            : Iterators.size(iterable.iterator());
      }
    
      /**
       * Returns {@code true} if {@code iterable} contains any element {@code o} for which {@code
       * Objects.equals(o, element)} would return {@code true}. Otherwise returns {@code false}, even in
       * cases where {@link Collection#contains} might throw {@link NullPointerException} or {@link
       * ClassCastException}.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        }
    
        @Override
        public boolean contains(@CheckForNull Object o) {
          if (o == null) {
            return false;
          }
          try {
            @SuppressWarnings("unchecked") // we catch CCE's
            C c = (C) o;
            return ImmutableRangeSet.this.contains(c);
          } catch (ClassCastException e) {
            return false;
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeMultiset.java

      }
    
      @Override
      public int count(@CheckForNull Object element) {
        try {
          @SuppressWarnings("unchecked")
          E e = (E) element;
          AvlNode<E> root = rootReference.get();
          if (!range.contains(e) || root == null) {
            return 0;
          }
          return root.count(comparator(), e);
        } catch (ClassCastException | NullPointerException e) {
          return 0;
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableCollection.java

           * we're copying into a `contents` array whose type allows it to contain nulls. Still, it's
           * worth noting that we promise not to put nulls into the array in the first `size` elements.
           * We uphold that promise here because our callers promise that `elements` will not contain
           * nulls in its first `n` elements.
           */
          System.arraycopy(elements, 0, contents, size, n);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        TimeoutException e =
            assertThrows(TimeoutException.class, () -> testFuture.get(1, TimeUnit.NANOSECONDS));
        assertThat(e.getMessage()).contains("1 nanoseconds");
        assertThat(e.getMessage()).contains("Because this test isn't done");
      }
    
      public void testToString_completesDuringToString() throws Exception {
        AbstractFuture<Object> testFuture =
            new AbstractFuture<Object>() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return Collections.unmodifiableMap(map);
      }
    
      /** Returns true if this map contains a mapping for the specified key. */
      public boolean containsKey(Object key) {
        return map.containsKey(key);
      }
    
      /**
       * Returns the number of key-value mappings in this map. If the map contains more than {@code
       * Integer.MAX_VALUE} elements, returns {@code Integer.MAX_VALUE}.
       */
      public int size() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top