
com.workday.autoparse.json.utils.Preconditions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoparse-json Show documentation
Show all versions of autoparse-json Show documentation
A java library built specifically for Android that uses code generation to parse JSON into custom objects in your project.
/*
* Copyright 2016 Workday, Inc.
*
* This software is available under the MIT license.
* Please see the LICENSE.txt file in this project.
*/
package com.workday.autoparse.json.utils;
/**
* @author nathan.taylor
* @since 2016-04-07.
*/
public class Preconditions {
private Preconditions() {
}
public static void checkArgument(boolean condition, String message) {
if (!condition) {
throw new IllegalArgumentException(message);
}
}
public static void checkNotNull(Object reference, String errorMessage) {
if (reference == null) {
throw new IllegalArgumentException(errorMessage);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy