All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.security.xsuaa.Assertions Maven / Gradle / Ivy

There is a newer version: 3.5.6
Show newest version
/**
 * SPDX-FileCopyrightText: 2018-2023 SAP SE or an SAP affiliate company and Cloud Security Client Java contributors
 * 

* SPDX-License-Identifier: Apache-2.0 */ package com.sap.cloud.security.xsuaa; import java.util.List; public class Assertions { private Assertions() { } public static void assertNotNull(Object object, String message) { if (object == null) { throw new IllegalArgumentException(message); } } public static void assertHasText(String string, String message) { if (string == null || string.trim().isEmpty()) { throw new IllegalArgumentException(message); } } public static void assertNotEmpty(List list, String message) { if (list == null || list.isEmpty()) { throw new IllegalArgumentException(message); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy