- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,143 for if (0.18 sec)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
public static void staticOneArgCheckForNullThrowsNPE(@javax.annotation.CheckForNull String s) { checkNotNull(s); // doesn't check if you said you'd accept null, but you don't } public static void staticOneArgNullableThrowsNPE(@Nullable String s) { checkNotNull(s); // doesn't check if you said you'd accept null, but you don't } public void oneArgCorrectlyThrowsNpe(String s) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 47.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Cut.java
return this; } // note: overridden by {BELOW,ABOVE}_ALL @Override public int compareTo(Cut<C> that) { if (that == belowAll()) { return 1; } if (that == aboveAll()) { return -1; } int result = Range.compareOrThrow(endpoint, that.endpoint); if (result != 0) { return result; } // same value. below comes before above
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 12.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/RelationshipTester.java
if (itemNumber != relatedItemNumber) { assertRelated(groupNumber, itemNumber, relatedItemNumber); } } // check unrelated items in all other groups for (int unrelatedGroupNumber = 0; unrelatedGroupNumber < groups.size(); unrelatedGroupNumber++) { if (groupNumber != unrelatedGroupNumber) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 5.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
int i; @Override public boolean hasNext() { return i < array.length; } @Override public String next() { if (!hasNext()) { throw new NoSuchElementException(); } return array[i++]; } @Override public boolean hasPrevious() { return i > 0; }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 2.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java
} public final Set<Feature<?>> getAbsentFeatures() { return absentFeatures; } @Override public boolean equals(@Nullable Object object) { if (object == this) { return true; } if (object instanceof TesterRequirements) { TesterRequirements that = (TesterRequirements) object; return this.presentFeatures.equals(that.presentFeatures)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 20 11:19:03 GMT 2023 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
for (int i = 0; i < aa.length(); i++) { double v = aa.get(i); assertTrue(v >= 0); if (v != 0) { done = false; if (aa.compareAndSet(i, v, v - 1.0)) { ++counts; } } } if (done) { break; } } } } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 10K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSortedSetMultimap.java
Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); } } @Override Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) { if (collection instanceof NavigableSet) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jun 15 21:08:00 GMT 2021 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java
Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); } } @Override Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) { if (collection instanceof NavigableSet) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 15 21:08:00 GMT 2021 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hasher.java
* * <pre>{@code * newHasher().putByte(b1).putByte(b2).putByte(b3).hash() * newHasher().putByte(b1).putBytes(new byte[] { b2, b3 }).hash() * newHasher().putBytes(new byte[] { b1, b2, b3 }).hash() * }</pre> * * <p>If you wish to avoid this, you should either prepend or append the size of each chunk. Keep in * mind that when dealing with char sequences, the encoded form of two concatenated char sequences
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 5.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
// Avoid expectEquals() here to delay reason manufacture until necessary. if (getList().size() != expectedList.size()) { fail("size mismatch: " + reportContext(expectedList)); } for (int i = 0; i < expectedList.size(); i++) { E expected = expectedList.get(i); E actual = getList().get(i); if (expected != actual && (expected == null || !expected.equals(actual))) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.8K bytes - Viewed (0)