Class RuntimeType.Verifier

  • Enclosing class:
    RuntimeType

    public static final class RuntimeType.Verifier
    extends java.lang.Object
    A non-instantiable type that allows to check if a method or parameter should consider a runtime type.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Verifier()
      As this is merely a utility method, the constructor is not supposed to be invoked.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Assigner.Typing check​(AnnotationSource annotationSource)
      Checks if an annotated element should be assigned a value by considering the runtime type.
      • Methods inherited from class java.lang.Object

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

      • Verifier

        private Verifier()
        As this is merely a utility method, the constructor is not supposed to be invoked.
    • Method Detail

      • check

        public static Assigner.Typing check​(AnnotationSource annotationSource)
        Checks if an annotated element should be assigned a value by considering the runtime type.
        Parameters:
        annotationSource - The annotated element of interest.
        Returns:
        Indicates if dynamic type castings should be attempted for incompatible assignments.