Class ParticipantName.Literal
- java.lang.Object
-
- io.micronaut.coherence.annotation.ParticipantName.Literal
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
- Enclosing class:
- ParticipantName
public static class ParticipantName.Literal extends java.lang.Object implements ParticipantName
An annotation literal for theParticipantNameannotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.micronaut.coherence.annotation.ParticipantName
ParticipantName.Literal
-
-
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.booleanequals(java.lang.Object o)inthashCode()static ParticipantName.Literalof(java.lang.String name)Create aParticipantName.Literal.java.lang.Stringvalue()The participant name.
-
-
-
Method Detail
-
of
public static ParticipantName.Literal of(java.lang.String name)
Create aParticipantName.Literal.- Parameters:
name- the participant name- Returns:
- a
ParticipantName.Literalwith the specified value
-
value
public java.lang.String value()
The participant name.- Returns:
- the participant name
-
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.
-
-