Class AnnotationImpl
java.lang.Object
eu.mihosoft.vmf.runtime.core.internal.AnnotationImpl
- All Implemented Interfaces:
Annotation
public class AnnotationImpl extends java.lang.Object implements Annotation
-
Constructor Summary
Constructors Constructor Description AnnotationImpl(java.lang.String key, java.lang.String value)
-
Method Summary
-
Constructor Details
-
AnnotationImpl
public AnnotationImpl(java.lang.String key, java.lang.String value)
-
-
Method Details
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getKey
public java.lang.String getKey()Description copied from interface:Annotation
Returns the annotation key which can be an arbitrary string. Keys are used to group annotations into categories.- Specified by:
getKey
in interfaceAnnotation
- Returns:
- annotation key, e.g.,
"api"
or"model"
-
getValue
public java.lang.String getValue()Description copied from interface:Annotation
Returns the annotation value which can be an arbitrary string. Consumers of the annotation are responsible for parsing the value string.- Specified by:
getValue
in interfaceAnnotation
- Returns:
- annotation value, e.g.,
"min=3;max=27"
-