Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VUtils – Release 1
Interface org.violetlib.util.Extensible
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.util

Interface Extensible

  • public interface Extensible
    An interface that allows the runtime discovery of additional supported interfaces.

    This approach to the runtime discovery of interfaces is preferred over using instanceof because it can be supported using delegation.

    See Also:
    Extensions.getExtension(java.lang.Object, java.lang.Class<T>)
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator getExtension Reveal DetailHide Detail
      abstract <T> T getExtension(Class<T> c)
      Return an extension, if supported.
      <T> T getExtension(Class<T> c)
      Return an extension, if supported.

      Note: this method should not be called directly. Use Extensions.getExtension(java.lang.Object, java.lang.Class<T>).

      Parameters:
      c - The class or interface that designates the extension.
      Returns:
      the extension, if supported, or null.