public class ImmutableAnnotationEncodedValue extends BaseAnnotationEncodedValue implements ImmutableEncodedValue
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> |
elements |
protected java.lang.String |
type |
| Constructor and Description |
|---|
ImmutableAnnotationEncodedValue(java.lang.String type,
java.util.Collection<? extends AnnotationElement> elements) |
ImmutableAnnotationEncodedValue(java.lang.String type,
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> |
getElements()
Gets a set of the name/value elements associated with this annotation.
|
java.lang.String |
getType()
Gets the type of this annotation.
|
static ImmutableAnnotationEncodedValue |
of(AnnotationEncodedValue annotationEncodedValue) |
compareTo, equals, getValueType, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetValueType@Nonnull protected final java.lang.String type
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements
public ImmutableAnnotationEncodedValue(@Nonnull
java.lang.String type,
@Nullable
java.util.Collection<? extends AnnotationElement> elements)
public ImmutableAnnotationEncodedValue(@Nonnull
java.lang.String type,
@Nullable
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> elements)
public static ImmutableAnnotationEncodedValue of(AnnotationEncodedValue annotationEncodedValue)
@Nonnull public java.lang.String getType()
AnnotationEncodedValuegetType in interface BasicAnnotationgetType in interface AnnotationEncodedValue@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableAnnotationElement> getElements()
AnnotationEncodedValuegetElements in interface BasicAnnotationgetElements in interface AnnotationEncodedValue