Class AnnotationConvertUtil


  • public final class AnnotationConvertUtil
    extends java.lang.Object
    Annotation convert utility
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AnnotationConvertUtil getInstance()
      Get the instance
      <T extends javax.lang.model.element.ExecutableElement>
      java.lang.String
      getName​(T type)
      Get the name
      <T extends javax.lang.model.element.AnnotationValue>
      java.lang.String
      getValue​(T type)
      Get the name
      java.time.Instant parseDate​(java.lang.String input)
      Parse a date
      java.lang.String trimQuotationMarks​(java.lang.String input)
      Trim quotation marks
      • Methods inherited from class java.lang.Object

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

      • MAX_TIMESTAMP_STRING

        public static final java.lang.String MAX_TIMESTAMP_STRING
        See Also:
        Constant Field Values
      • MAX_TIMESTAMP

        public static final java.time.Instant MAX_TIMESTAMP
    • Method Detail

      • parseDate

        public java.time.Instant parseDate​(java.lang.String input)
        Parse a date
        Parameters:
        input - the input date as string
        Returns:
        the Instant
      • getName

        public <T extends javax.lang.model.element.ExecutableElement> java.lang.String getName​(T type)
        Get the name
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the type as name
      • getValue

        public <T extends javax.lang.model.element.AnnotationValue> java.lang.String getValue​(T type)
        Get the name
        Type Parameters:
        T - the generic type
        Parameters:
        type - the type
        Returns:
        the type as name
      • trimQuotationMarks

        public java.lang.String trimQuotationMarks​(java.lang.String input)
        Trim quotation marks
        Parameters:
        input - the input
        Returns:
        the trimmed output