Class Functions
java.lang.Object
io.opencensus.common.Functions
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturnConstant(T constant) AFunctionthat always ignores its argument and returns a constant value.AFunctionthat always ignores its argument and returnsnull.AFunctionthat always returns theObject.toString()value of the input.AFunctionthat always ignores its argument and throws anAssertionError.AFunctionthat always ignores its argument and throws anIllegalArgumentException.
-
Field Details
-
RETURN_NULL
-
THROW_ILLEGAL_ARGUMENT_EXCEPTION
-
THROW_ASSERTION_ERROR
-
RETURN_TO_STRING
-
-
Constructor Details
-
Functions
private Functions()
-
-
Method Details
-
returnNull
-
returnConstant
-
returnToString
AFunctionthat always returns theObject.toString()value of the input.- Returns:
- a
Functionthat always returns theObject.toString()value of the input. - Since:
- 0.17
-
throwIllegalArgumentException
AFunctionthat always ignores its argument and throws anIllegalArgumentException.- Returns:
- a
Functionthat always ignores its argument and throws anIllegalArgumentException. - Since:
- 0.5
-
throwAssertionError
AFunctionthat always ignores its argument and throws anAssertionError.- Returns:
- a
Functionthat always ignores its argument and throws anAssertionError. - Since:
- 0.6
-