- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for cardinality (0.18 sec)
-
guava/src/com/google/common/base/SmallCharMatcher.java
tableSize <<= 1; } return tableSize; } static CharMatcher from(BitSet chars, String description) { // Compute the filter. long filter = 0; int size = chars.cardinality(); boolean containsZero = chars.get(0); // Compute the hash table. char[] table = new char[chooseTableSize(size)]; int mask = table.length - 1;
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 4.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
*/ protected final void expectContents(E... elements) { expectContents(Arrays.asList(elements)); } /** * Asserts that the collection under test contains exactly the given elements, respecting * cardinality but not order. Subclasses may override this method to provide stronger assertions, * e.g., to check ordering in lists, but realize that <strong>unless a test extends {@link
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/SmallCharMatcher.java
tableSize <<= 1; } return tableSize; } static CharMatcher from(BitSet chars, String description) { // Compute the filter. long filter = 0; int size = chars.cardinality(); boolean containsZero = chars.get(0); // Compute the hash table. char[] table = new char[chooseTableSize(size)]; int mask = table.length - 1;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 4.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java
*/ protected final void expectContents(E... elements) { expectContents(Arrays.asList(elements)); } /** * Asserts that the collection under test contains exactly the given elements, respecting * cardinality but not order. Subclasses may override this method to provide stronger assertions, * e.g., to check ordering in lists, but realize that <strong>unless a test extends {@link
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
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) -
android/guava/src/com/google/common/base/CharMatcher.java
*/ @GwtIncompatible // SmallCharMatcher CharMatcher precomputedInternal() { final BitSet table = new BitSet(); setBits(table); int totalCharacters = table.cardinality(); if (totalCharacters * 2 <= DISTINCT_CHARS) { return precomputedPositive(totalCharacters, table, toString()); } else {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 53.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
dups.set(i); } } if (dups.isEmpty()) { return entries; } @SuppressWarnings({"rawtypes", "unchecked"}) Entry<K, V>[] newEntries = new Entry[size - dups.cardinality()]; for (int inI = 0, outI = 0; inI < size; inI++) { if (!dups.get(inI)) { newEntries[outI++] = entries[inI]; } } return newEntries; } } /**
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 44.1K bytes - Viewed (0) -
guava/src/com/google/common/base/CharMatcher.java
*/ @GwtIncompatible // SmallCharMatcher CharMatcher precomputedInternal() { final BitSet table = new BitSet(); setBits(table); int totalCharacters = table.cardinality(); if (totalCharacters * 2 <= DISTINCT_CHARS) { return precomputedPositive(totalCharacters, table, toString()); } else {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 53.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java
void setUp() { this.matcher = precomputed ? config.matcher.precomputed() : config.matcher; if (size == Size.SMALL) { BitSet tmp = new BitSet(); matcher.setBits(tmp); int matchedCharCount = tmp.cardinality(); this.matcher = SmallCharMatcher.from(tmp, ""); } this.string = checkString(length, percent, config.matchingChars, new Random(), forceSlow, web); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 194.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java
void setUp() { this.matcher = precomputed ? config.matcher.precomputed() : config.matcher; if (size == Size.SMALL) { BitSet tmp = new BitSet(); matcher.setBits(tmp); int matchedCharCount = tmp.cardinality(); this.matcher = SmallCharMatcher.from(tmp, ""); } this.string = checkString(length, percent, config.matchingChars, new Random(), forceSlow, web); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 194.8K bytes - Viewed (0)