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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getKey()
Returns the annotation key which can be an arbitrary string.java.lang.String
getValue()
Returns the annotation value which can be an arbitrary string.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface eu.mihosoft.vmf.runtime.core.Annotation
equals
-
-
-
-
Method Detail
-
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"
-
-