- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 211 for Preconditions (0.4 seconds)
-
guava/src/com/google/common/base/Preconditions.java
* * <p>See the Guava User Guide on <a * href="https://github.com/google/guava/wiki/PreconditionsExplained">using {@code * Preconditions}</a>. * * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible public final class Preconditions { private Preconditions() {} /** * Ensures the truth of an expression involving one or more parameters to the calling method. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Preconditions.java
* * <p>See the Guava User Guide on <a * href="https://github.com/google/guava/wiki/PreconditionsExplained">using {@code * Preconditions}</a>. * * @author Kevin Bourrillion * @since 2.0 */ @GwtCompatible public final class Preconditions { private Preconditions() {} /** * Ensures the truth of an expression involving one or more parameters to the calling method. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkElementIndex; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkPositionIndex; import static com.google.common.base.Preconditions.checkPositionIndexes; import static com.google.common.base.Preconditions.checkState;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkElementIndex; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkPositionIndex; import static com.google.common.base.Preconditions.checkPositionIndexes; import static com.google.common.base.Preconditions.checkState;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 19.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/VerifyTest.java
checkMessage(expected); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNullPointers() { // Don't bother testing: Verify is like Preconditions. See the discussion on that class. } private static final Object IGNORE_ME = new Object() { @Override public String toString() { throw new AssertionFailedError(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 3.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/VerifyTest.java
checkMessage(expected); } @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNullPointers() { // Don't bother testing: Verify is like Preconditions. See the discussion on that class. } private static final Object IGNORE_ME = new Object() { @Override public String toString() { throw new AssertionFailedError(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 3.3K bytes - Click Count (0) -
architecture/standards/0008-use-nullaway.md
Prefer rearranging the code to avoid the error, unless there is a provable performance penalty or a significant loss of code readability. Use `Objects.requireNonNull` statement or `Preconditions` rather than `assert` or `@SuppressWarning` annotation to suppress if possible. For gradual adoption, enable checks project-by-project. Do not rely on `@NullMarked` annotations.
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 12:39:41 GMT 2026 - 4K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.io; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.hash.Hashing.sha512; import static com.google.common.io.TestOption.AVAILABLE_ALWAYS_ZERO; import static com.google.common.io.TestOption.CLOSE_THROWS;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Strings.java
* the License. */ package com.google.common.base; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import static java.lang.Math.min; import static java.util.logging.Level.WARNING; import com.google.common.annotations.GwtCompatible;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 12.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Strings.java
* the License. */ package com.google.common.base; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import static java.lang.Math.min; import static java.util.logging.Level.WARNING; import com.google.common.annotations.GwtCompatible;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 12.5K bytes - Click Count (0)