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

    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
  • 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 class java.lang.Object
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.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 interface Annotation
      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 interface Annotation
      Returns:
      annotation value, e.g., "min=3;max=27"