Class Name.Literal

java.lang.Object
io.micronaut.coherence.annotation.Name.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
Name

public static final class Name.Literal extends Object implements Name
An annotation literal for the Name annotation.
See Also:
  • Constructor Details

    • Literal

      public Literal(String sName, boolean fRegex)
      Construct Name.Literal instance.
      Parameters:
      sName - the resource name
      fRegex - true to indicate whether name is a regular expression
  • Method Details

    • of

      public static Name.Literal of(String sName)
      Create a Name.Literal.
      Parameters:
      sName - the resource name
      Returns:
      a Name.Literal with the specified value
    • value

      public String value()
      The name used to identify a specific resource.
      Returns:
      the name used to identify a specific resource
    • regex

      public boolean regex()
      Return true to indicate whether name is a regular expression.
      Returns:
      true to indicate whether name is a regular expression
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Annotation
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Annotation
    • annotationType

      public Class<? extends 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 interface Annotation
      Returns:
      annotation type of this literal.