Top Description Constructors Methods
io.opentelemetry.api.internal

public final Class Utils

extends Object
Class Inheritance
Annotations
@Immutable
Imports
javax.annotation.concurrent.Immutable

General internal utility methods.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
checkArgument(boolean
whether the argument check passed.
isValid
,
String
the message to use for the exception.
errorMessage
)

Throws an IllegalArgumentException if the argument is false.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilsback to summary
private Utils()

Method Detail

checkArgumentback to summary
public static void checkArgument(boolean isValid, String errorMessage)

Throws an IllegalArgumentException if the argument is false. This method is similar to Preconditions.checkArgument(boolean, Object) from Guava.

Parameters
isValid:boolean

whether the argument check passed.

errorMessage:String

the message to use for the exception.