Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,943 for elementsof (0.16 sec)

  1. src/regexp/testdata/testregex.c

    T("  Philip Hazel    ******@****.***              (pcre tests)\n");
    T("  Ville Laurikari ******@****.***                   (libtre tests)\n");
    H("</PRE>\n");
    H("</BODY>\n");
    H("</HTML>\n");
    }
    
    #ifndef elementsof
    #define elementsof(x)	(sizeof(x)/sizeof(x[0]))
    #endif
    
    #ifndef streq
    #define streq(a,b)	(*(a)==*(b)&&!strcmp(a,b))
    #endif
    
    #define HUNG		2
    #define NOTEST		(~0)
    
    #ifndef REG_TEST_DEFAULT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                    return false;
                  }
                  List<TypeWithDuplicates> elements1 = ImmutableList.copyOf(ms1.elementSet());
                  List<TypeWithDuplicates> elements2 = ImmutableList.copyOf(ms2.elementSet());
                  for (int i = 0; i < ms1.elementSet().size(); i++) {
                    if (!elements1.get(i).fullEquals(elements2.get(i))) {
                      return false;
                    }
                  }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 25K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

      }
    
      @Override
      public int size() {
        return size;
      }
    
      @Override
      public ImmutableSet<E> elementSet() {
        ImmutableSet<E> result = elementSet;
        return (result == null) ? elementSet = new ElementSet() : result;
      }
    
      @WeakOuter
      private final class ElementSet extends IndexedImmutableSet<E> {
    
        @Override
        E get(int index) {
          return contents.getKey(index);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multisets.java

      /**
       * Returns the expected number of distinct elements given the specified elements. The number of
       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
          return ((Multiset<?>) elements).elementSet().size();
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Multisets.java

      /**
       * Returns the expected number of distinct elements given the specified elements. The number of
       * distinct elements is only computed if {@code elements} is an instance of {@code Multiset};
       * otherwise the default value of 11 is returned.
       */
      static int inferDistinctElements(Iterable<?> elements) {
        if (elements instanceof Multiset) {
          return ((Multiset<?>) elements).elementSet().size();
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SortedMultiset.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Multiset} which maintains the ordering of its elements, according to either their
     * natural order or an explicit {@link Comparator}. This order is reflected when iterating over the
     * sorted multiset, either directly, or through its {@code elementSet} or {@code entrySet} views. In
     * all cases, this implementation uses {@link Comparable#compareTo} or {@link Comparator#compare}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/SortedMultiset.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Multiset} which maintains the ordering of its elements, according to either their
     * natural order or an explicit {@link Comparator}. This order is reflected when iterating over the
     * sorted multiset, either directly, or through its {@code elementSet} or {@code entrySet} views. In
     * all cases, this implementation uses {@link Comparable#compareTo} or {@link Comparator#compare}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

        /**
         * Adds each element of {@code elements} to the {@code ImmutableMultiset}.
         *
         * @param elements the elements to add
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code elements} is null or contains a null element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E... elements) {
          super.add(elements);
          return this;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. pkg/util/sets/set_test.go

    )
    
    func TestNewSet(t *testing.T) {
    	elements := []string{"a", "b", "c"}
    	set := New(elements...)
    
    	if len(set) != len(elements) {
    		t.Errorf("Expected length %d != %d", len(set), len(elements))
    	}
    
    	for _, e := range elements {
    		if _, exist := set[e]; !exist {
    			t.Errorf("%s is not in set %v", e, set)
    		}
    	}
    }
    
    func TestUnion(t *testing.T) {
    	elements := []string{"a", "b", "c", "d"}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        this.length = 0;
      }
    
      RegularImmutableSortedMultiset(
          RegularImmutableSortedSet<E> elementSet, long[] cumulativeCounts, int offset, int length) {
        this.elementSet = elementSet;
        this.cumulativeCounts = cumulativeCounts;
        this.offset = offset;
        this.length = length;
      }
    
      private int getCount(int index) {
        return (int) (cumulativeCounts[offset + index + 1] - cumulativeCounts[offset + index]);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top