public static class View.Literal extends java.lang.Object implements View
View annotation.| Modifier and Type | Class and Description |
|---|---|
static interface |
io.micronaut.coherence.annotation.AnnotationLiteral.NoType |
View.Literal| Modifier and Type | Field and Description |
|---|---|
static View.Literal |
INSTANCE
A singleton instance of
View.Literal
with the cache values flag set to true. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType()
Method returns the type of the annotation literal.
|
boolean |
cacheValues()
Obtain the flag that is
true to cache both the keys and
values of the materialized view locally, or false to only
cache the keys (the default value is true). |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static View.Literal |
of(boolean fCacheValues)
Create a
View.Literal. |
public static final View.Literal INSTANCE
View.Literal
with the cache values flag set to true.public static View.Literal of(boolean fCacheValues)
View.Literal.fCacheValues - a flag that is true to cache both the keys
and values of the materialized view locally, or
false to only cache the keysView.Literal with the specified valuepublic boolean cacheValues()
true to cache both the keys and
values of the materialized view locally, or false to only
cache the keys (the default value is true).true to indicate that values should be cache or
false to indicate that only keys should be cached.public boolean equals(java.lang.Object o)
equals in interface java.lang.annotation.Annotationpublic int hashCode()
hashCode in interface java.lang.annotation.Annotationpublic java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
annotationType in interface java.lang.annotation.Annotation