Package oracle.dbtools.plugin.api.types
Class TypeDependencies<T>
java.lang.Object
oracle.dbtools.plugin.api.types.TypeDependencies<T>
- Type Parameters:
T- The type
- All Implemented Interfaces:
Iterable<TypeDependency>
Captures the dependencies of a
Class- Since:
- 19.3.0
- Author:
- cdivilly
-
Method Summary
Modifier and TypeMethodDescriptionbooleandependenciesSatisfied(InstanceLocator locator) Resolves dependencies to determine if this type can be instantiated.booleaninthashCode()booleanDetermines if the type can be instantiated.booleanDetermines if the type can be instantiated.iterator()intsize()The number ofTypeDependencyinstancestoString()type()The typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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
-
size
public int size()The number ofTypeDependencyinstances- Returns:
- integer indicating number of
TypeDependencyinstances
-
toString
-
type
The type- Returns:
Classinstance
-
dependenciesSatisfied
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:
-