Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for self (0.14 sec)

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

      static <E extends @Nullable Object> boolean addAllImpl(
          Multiset<E> self, Collection<? extends E> elements) {
        checkNotNull(self);
        checkNotNull(elements);
        if (elements instanceof Multiset) {
          return addAllImpl(self, cast(elements));
        } else if (elements.isEmpty()) {
          return false;
        } else {
          return Iterators.addAll(self, elements.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)
  2. guava/src/com/google/common/collect/ForwardingSortedSet.java

        try {
          // any ClassCastExceptions and NullPointerExceptions are caught
          @SuppressWarnings({"unchecked", "nullness"})
          SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this;
          Object ceiling = self.tailSet(object).first();
          return unsafeCompare(comparator(), ceiling, object) == 0;
        } catch (ClassCastException | NoSuchElementException | NullPointerException e) {
          return false;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.graph.GraphConstants.SELF_LOOPS_NOT_ALLOWED;
    import static com.google.common.graph.Graphs.checkNonNegative;
    import static com.google.common.graph.Graphs.checkPositive;
    import static java.util.Objects.requireNonNull;
    
    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)
  4. android/guava/src/com/google/common/graph/NetworkBuilder.java

        this.allowsParallelEdges = allowsParallelEdges;
        return this;
      }
    
      /**
       * Specifies whether the network will allow self-loops (edges that connect a node to itself).
       * Attempting to add a self-loop to a network that does not allow them will throw an {@link
       * UnsupportedOperationException}.
       *
       * <p>The default value is {@code false}.
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Collections2.java

       * @param self a collection which might contain all elements in {@code c}
       * @param c a collection whose elements might be contained by {@code self}
       */
      static boolean containsAllImpl(Collection<?> self, Collection<?> c) {
        for (Object o : c) {
          if (!self.contains(o)) {
            return false;
          }
        }
        return true;
      }
    
      /** An implementation of {@link Collection#toString()}. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            "containsAll(sameElements) should return true",
            collection.containsAll(MinimalCollection.of(createSamplesArray())));
      }
    
      @SuppressWarnings("ModifyingCollectionWithItself")
      public void testContainsAll_self() {
        assertTrue("containsAll(this) should return true", collection.containsAll(collection));
      }
    
      public void testContainsAll_partialOverlap() {
        assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      protected B usingGenerator(G subjectGenerator) {
        this.subjectGenerator = subjectGenerator;
        return self();
      }
    
      public G getSubjectGenerator() {
        return subjectGenerator;
      }
    
      @CanIgnoreReturnValue
      public B withSetUp(Runnable setUp) {
        this.setUp = setUp;
        return self();
      }
    
      public Runnable getSetUp() {
        return setUp;
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingSortedSet.java

        try {
          // any ClassCastExceptions and NullPointerExceptions are caught
          @SuppressWarnings({"unchecked", "nullness"})
          SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this;
          Object ceiling = self.tailSet(object).first();
          return unsafeCompare(comparator(), ceiling, object) == 0;
        } catch (ClassCastException | NoSuchElementException | NullPointerException e) {
          return false;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/GraphsTest.java

      private static final String ERROR_ADDED_PARALLEL_EDGE =
          "Should not be allowed to add a parallel edge.";
      private static final String ERROR_ADDED_SELF_LOOP =
          "Should not be allowed to add a self-loop edge.";
      static final String ERROR_SELF_LOOP = "self-loops are not allowed";
    
      @Test
      public void transitiveClosure_directedGraph() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      protected B usingGenerator(G subjectGenerator) {
        this.subjectGenerator = subjectGenerator;
        return self();
      }
    
      public G getSubjectGenerator() {
        return subjectGenerator;
      }
    
      @CanIgnoreReturnValue
      public B withSetUp(Runnable setUp) {
        this.setUp = setUp;
        return self();
      }
    
      public Runnable getSetUp() {
        return setUp;
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top