Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 432 for add2 (2.04 sec)

  1. guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

                CollectionFeature.GENERAL_PURPOSE,
                CollectionFeature.REMOVE_OPERATIONS,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.KNOWN_ORDER,
                CollectionFeature.SUPPORTS_ADD,
                CollectionFeature.SUPPORTS_REMOVE);
    
        TestSuite suite = new TestSuite();
        suite.addTestSuite(CompactLinkedHashSetTest.class);
        suite.addTest(
            SetTestSuiteBuilder.using(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 21:08:15 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/LineBufferTest.java

              @Override
              protected void handleLine(String line, String end) {
                lines.add(line + end);
              }
            };
        char[] chars = input.toCharArray();
        int off = 0;
        while (off < chars.length) {
          int len = Math.min(chars.length, off + chunk) - off;
          lineBuf.add(chars, off, len);
          off += len;
        }
        lineBuf.finish();
        return lines;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ListsTest.java

        /* fromList modifications reflected in toList */
        fromList.set(0, 5);
        assertEquals(asList(4, 3, 2, 5), toList);
        fromList.add(6);
        assertEquals(asList(6, 4, 3, 2, 5), toList);
        fromList.add(2, 9);
        assertEquals(asList(6, 4, 3, 9, 2, 5), toList);
        fromList.remove(Integer.valueOf(2));
        assertEquals(asList(6, 4, 3, 9, 5), toList);
        fromList.remove(3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractMultiset.java

        return count(element) > 0;
      }
    
      // Modification Operations
      @CanIgnoreReturnValue
      @Override
      public final boolean add(@ParametricNullness E element) {
        add(element, 1);
        return true;
      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        throw new UnsupportedOperationException();
      }
    
      @CanIgnoreReturnValue
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherSetWithDifferentElements() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        elements.add(getSubjectGenerator().samples().e3());
    
        assertFalse(
            "A Set should not equal another Set containing different elements.",
            getSet().equals(MinimalSet.from(elements)));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingCollection.java

      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return delegate().contains(object);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean add(@ParametricNullness E element) {
        return delegate().add(element);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean remove(@CheckForNull Object object) {
        return delegate().remove(object);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 8.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          for (int i = 0; i < startIndex; i++) {
            previousElements.push(nextElements.pop());
          }
        }
    
        @Override
        public void add(E e) {
          if (!features.contains(IteratorFeature.SUPPORTS_ADD)) {
            throw PermittedMetaException.UOE;
          }
    
          previousElements.push(e);
          stackWithLastReturnedElementAtTop = null;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/NullnessCasts.java

       * without having to add {@code @SuppressWarnings}, the code can call this method.
       *
       * <p>Why <i>not</i> just add {@code SuppressWarnings}? The problem is that this method is
       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 10 20:36:34 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        ImmutableSet.Builder<Object> builder = ImmutableSet.builderWithExpectedSize(6);
        builder.add(0);
        ImmutableSet<Object> unused = builder.build();
        ImmutableSet<Object> subject = builder.add(1).add(2).add(3).build();
        assertFalse(subject.contains(4));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MultisetsTest.java

      public void testNewTreeMultisetDerived() {
        TreeMultiset<DerivedComparable> set = TreeMultiset.create();
        assertTrue(set.isEmpty());
        set.add(new DerivedComparable("foo"), 2);
        set.add(new DerivedComparable("bar"), 3);
        assertThat(set)
            .containsExactly(
                new DerivedComparable("bar"),
                new DerivedComparable("bar"),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top