Class AnnotationImpl

java.lang.Object
eu.mihosoft.vmf.runtime.core.internal.AnnotationImpl
All Implemented Interfaces:
Annotation

public class AnnotationImpl extends Object implements Annotation
  • Constructor Details

    • AnnotationImpl

      public AnnotationImpl(String key, String value)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKey

      public 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 interface Annotation
      Returns:
      annotation key, e.g., "api" or "model"
    • getValue

      public 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 interface Annotation
      Returns:
      annotation value, e.g., "min=3;max=27"