Class ClassSelector

    • Method Detail

      • getClassLoader

        @API(status=MAINTAINED,
             since="1.13.3")
        public java.lang.ClassLoader getClassLoader()
        Get the ClassLoader used to load the selected class.
        Returns:
        the ClassLoader; potentially null
        Since:
        1.10
      • getClassName

        public java.lang.String getClassName()
        Get the selected class name.
      • getJavaClass

        public java.lang.Class<?> getJavaClass()
        Get the selected Class.

        If the Class was not provided, but only the name, this method attempts to lazily load the Class based on its name and throws a PreconditionViolationException if the class cannot be loaded.

      • equals

        @API(status=STABLE,
             since="1.3")
        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
        Since:
        1.3
      • hashCode

        @API(status=STABLE,
             since="1.3")
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Since:
        1.3
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object