Class TypeDependencies<T>

java.lang.Object
oracle.dbtools.plugin.api.types.TypeDependencies<T>
Type Parameters:
T - The type
All Implemented Interfaces:
Iterable<TypeDependency>

public class TypeDependencies<T> extends Object implements Iterable<TypeDependency>
Captures the dependencies of a Class
Since:
19.3.0
Author:
cdivilly
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isConcrete

      public boolean isConcrete()
      Determines if the type can be instantiated.
      Returns:
      true if the type can be instantiated
    • isInstantiable

      public boolean isInstantiable()
      Determines if the type can be instantiated.
      Returns:
      true if the type can be instantiated
    • iterator

      public Iterator<TypeDependency> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • size

      public int size()
      The number of TypeDependency instances
      Returns:
      integer indicating number of TypeDependency instances
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • type

      public Class<T> type()
      The type
      Returns:
      Class instance
    • dependenciesSatisfied

      public boolean dependenciesSatisfied(InstanceLocator locator)
      Resolves dependencies to determine if this type can be instantiated. Ideally this is called before newInstance(InstanceLocator) so that a TypeDependencyNotAvailableException is avoided. Note that this method may still throw an unchecked exception if a dependency is not satisfied.
      Parameters:
      locator -
      Returns: