public class ExtensionTags extends Object
ExtensionTag.| Constructor and Description |
|---|
ExtensionTags() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionTag |
createOpaque()
Obtains a new opaque
ExtensionTag which is not equal to any other. |
static <V> Function<V,ExtensionTag> |
createValueTagFactory(Class<V> valueClass)
Obtains a new factory which creates
ExtensionTag instances wrapping a given value type. |
@Nonnull public static ExtensionTag createOpaque()
ExtensionTag which is not equal to any other.@Nonnull public static <V> Function<V,ExtensionTag> createValueTagFactory(Class<V> valueClass)
ExtensionTag instances wrapping a given value type.
The ExtensionTag instances created by the factory compare equal to tags that are obtained from the same
factory instance with values that compare equal. That is, each invocation returns a factory which produces tags
distinct from any other invocation.
V - the value class of the tagvalueClass - the Class instance for the tag value class.ExtensionTag instances that compare as their values. The
apply method of the returned Function does not return null, and may be called concurrently.Copyright © 2015 Atlassian. All rights reserved.