Class View.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.View.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- View
public static class View.Literal extends java.lang.Object implements View
An annotation literal for theViewannotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.View
View.Literal
-
-
Field Summary
Fields Modifier and Type Field Description static View.LiteralINSTANCEA singleton instance ofView.Literalwith the cache values flag set to true.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>annotationType()Method returns the type of the annotation literal.booleancacheValues()Obtain the flag that istrueto cache both the keys and values of the materialized view locally, orfalseto only cache the keys (the default value istrue).booleanequals(java.lang.Object o)inthashCode()static View.Literalof(boolean fCacheValues)Create aView.Literal.
-
-
-
Field Detail
-
INSTANCE
public static final View.Literal INSTANCE
A singleton instance ofView.Literalwith the cache values flag set to true.
-
-
Method Detail
-
of
public static View.Literal of(boolean fCacheValues)
Create aView.Literal.- Parameters:
fCacheValues- a flag that istrueto cache both the keys and values of the materialized view locally, orfalseto only cache the keys- Returns:
- a
View.Literalwith the specified value
-
cacheValues
public boolean cacheValues()
Obtain the flag that istrueto cache both the keys and values of the materialized view locally, orfalseto only cache the keys (the default value istrue).- Returns:
trueto indicate that values should be cache orfalseto indicate that only keys should be cached.
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.lang.annotation.Annotation
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.lang.annotation.Annotation
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
Method returns the type of the annotation literal. The value is resolved lazily during the first call of this method.- Specified by:
annotationTypein interfacejava.lang.annotation.Annotation- Returns:
- annotation type of this literal.
-
-