Package com.amazon.ion.util
Class Spans
java.lang.Object
com.amazon.ion.util.Spans
Utility methods for working with
Spans.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcurrentSpan(Class<T> spanFacetType, Object spanProvider) Attempts to get aSpanfacet from the given object, if it supportsSpanProvider.currentSpan().static SpancurrentSpan(Object spanProvider) Attempts to get aSpanfrom the given object, if it supportsSpanProvider.currentSpan().
-
Constructor Details
-
Spans
public Spans()
-
-
Method Details
-
currentSpan
Attempts to get aSpanfrom the given object, if it supportsSpanProvider.currentSpan().- Parameters:
spanProvider- may be null.- Returns:
- null if there's not a current span.
-
currentSpan
Attempts to get aSpanfacet from the given object, if it supportsSpanProvider.currentSpan().- Parameters:
spanProvider- may be null.- Returns:
- null if there's not a current span supporting
spanFacetType.
-