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 theParticipantName
annotation.- 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.boolean
equals(java.lang.Object o)
int
hashCode()
static ParticipantName.Literal
of(java.lang.String name)
Create aParticipantName.Literal
.java.lang.String
value()
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.Literal
with 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:
equals
in interfacejava.lang.annotation.Annotation
-
hashCode
public int hashCode()
- Specified by:
hashCode
in 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:
annotationType
in interfacejava.lang.annotation.Annotation
- Returns:
- annotation type of this literal.
-
-