Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,682 for add (0.16 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

        assertEquals(originalCount + 1, getMultiset().count(e0()));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddOccurrencesZero() {
        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().add(e0(), 0));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddOccurrences() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        queryBuilder.add(Range.<Integer>all());
    
        for (int i = MIN_BOUND; i <= MAX_BOUND; i++) {
          for (BoundType boundType : BoundType.values()) {
            queryBuilder.add(Range.upTo(i, boundType));
            queryBuilder.add(Range.downTo(i, boundType));
          }
          queryBuilder.add(Range.singleton(i));
          queryBuilder.add(Range.openClosed(i, i));
          queryBuilder.add(Range.closedOpen(i, i));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAdd_supportedNotPresent() {
        assertTrue("add(notPresent) should return true", collection.add(e3()));
        expectAdded(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAdd_unsupportedNotPresent() {
        try {
          collection.add(e3());
          fail("add(notPresent) should throw");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java

        testers.add(ListLastIndexOfTester.class);
        testers.add(ListListIteratorTester.class);
        testers.add(ListRemoveAllTester.class);
        testers.add(ListRemoveAtIndexTester.class);
        testers.add(ListRemoveTester.class);
        testers.add(ListReplaceAllTester.class);
        testers.add(ListRetainAllTester.class);
        testers.add(ListSetTester.class);
        testers.add(ListSubListTester.class);
        testers.add(ListToArrayTester.class);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  5. cmd/metacache_test.go

    		status:       scanStateError,
    		fileNotFound: false,
    		error:        "an error lol",
    		started:      metaCacheTestsetTimestamp.Add(-20 * time.Minute),
    		ended:        metaCacheTestsetTimestamp.Add(-20 * time.Minute),
    		lastUpdate:   metaCacheTestsetTimestamp.Add(-20 * time.Minute),
    		lastHandout:  metaCacheTestsetTimestamp.Add(-20 * time.Minute),
    		dataVersion:  metacacheStreamVersion,
    	},
    	4: {
    		id:           "case-5-noupdate",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 08 18:06:45 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

        public void notOverriddenInSubclass(Object o) {
          notOverriddenInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenNotAnnotatedInSubclass(Object o) {
          overriddenNotAnnotatedInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenAndAnnotatedInSubclass(Object o) {
          overriddenAndAnnotatedInSubclassEvents.add(o);
        }
    
        @Subscribe
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI))
              .add(BigInteger.ONE.shiftLeft(63).add(bigI))
              .add(BigInteger.ONE.shiftLeft(64).add(bigI));
        }
        TEST_LONGS = testLongsBuilder.build();
        TEST_BIG_INTEGERS = testBigIntegersBuilder.build();
      }
    
      public void testAsUnsignedAndLongValueAreInverses() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

      }
    
      private interface Adder {
        int add(int a, int b);
      }
    
      private static class ForwardingArithmetic implements Arithmetic {
        private final Arithmetic arithmetic;
    
        public ForwardingArithmetic(Arithmetic arithmetic) {
          this.arithmetic = arithmetic;
        }
    
        @Override
        public int add(int a, int b) {
          return arithmetic.add(a, b);
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .omitNullValues()
                .add("field1", "Hello")
                .add("field2", "Googley")
                .add("field3", "World")
                .toString();
        String toTest2 =
            MoreObjects.toStringHelper(new TestClass())
                .add("field1", "Hello")
                .add("field2", "Googley")
                .omitNullValues()
                .add("field3", "World")
                .toString();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  10. internal/event/rulesmap.go

    package event
    
    // RulesMap - map of rules for every event name.
    type RulesMap map[Name]Rules
    
    // add - adds event names, prefixes, suffixes and target ID to rules map.
    func (rulesMap RulesMap) add(eventNames []Name, pattern string, targetID TargetID) {
    	rules := make(Rules)
    	rules.Add(pattern, targetID)
    
    	for _, eventName := range eventNames {
    		for _, name := range eventName.Expand() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.6K bytes
    - Viewed (0)
Back to top