Class View.Literal
java.lang.Object
io.micronaut.coherence.annotation.View.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
- View
An annotation literal for the
View
annotation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.View
View.Literal
-
Field Summary
Modifier and TypeFieldDescriptionstatic final View.Literal
A singleton instance ofView.Literal
with the cache values flag set to true. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
Method returns the type of the annotation literal.boolean
Obtain the flag that istrue
to cache both the keys and values of the materialized view locally, orfalse
to only cache the keys (the default value istrue
).boolean
int
hashCode()
static View.Literal
of
(boolean fCacheValues) Create aView.Literal
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.annotation.Annotation
toString
-
Field Details
-
INSTANCE
A singleton instance ofView.Literal
with the cache values flag set to true.
-
-
Method Details
-
of
Create aView.Literal
.- Parameters:
fCacheValues
- a flag that istrue
to cache both the keys and values of the materialized view locally, orfalse
to only cache the keys- Returns:
- a
View.Literal
with the specified value
-
cacheValues
public boolean cacheValues()Obtain the flag that istrue
to cache both the keys and values of the materialized view locally, orfalse
to only cache the keys (the default value istrue
).- Returns:
true
to indicate that values should be cached orfalse
to indicate that only keys should be cached.
-
equals
- Specified by:
equals
in interfaceAnnotation
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceAnnotation
-
annotationType
Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.- Specified by:
annotationType
in interfaceAnnotation
- Returns:
- annotation type of this literal.
-