Class Functions
java.lang.Object
io.opencensus.common.Functions
-
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.
-
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
-