Class AnnotationElementLiteral

  • All Implemented Interfaces:
    AnnotationElement<java.lang.String>

    public class AnnotationElementLiteral
    extends java.lang.Object
    implements AnnotationElement<java.lang.String>
    This class represents literal values. To save space, we store strings only once, and have a cardinality assigned to them
    Author:
    abolt
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addValue​(java.lang.String newElement)  
      java.util.List<java.lang.String> getDistinctValues()  
      java.lang.String getName()  
      java.util.List<java.lang.String> getValues()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationElementLiteral

        public AnnotationElementLiteral​(java.lang.String name)
    • Method Detail

      • addValue

        public void addValue​(java.lang.String newElement)
        Specified by:
        addValue in interface AnnotationElement<java.lang.String>
      • getValues

        public java.util.List<java.lang.String> getValues()
        Specified by:
        getValues in interface AnnotationElement<java.lang.String>