Package xyz.jpenilla.gremlin.runtime
Record Class DependencySet
java.lang.Object
java.lang.Record
xyz.jpenilla.gremlin.runtime.DependencySet
-
Constructor Summary
ConstructorsConstructorDescriptionDependencySet(List<String> repositories, List<Dependency> dependencies, Map<String, Extension<?>> extensions, Map<String, ?> extensionData) Creates an instance of aDependencySetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionDatarecord component.Returns the value of theextensionsrecord component.final inthashCode()Returns a hash code value for this object.static DependencySetread(InputStream inputStream) static DependencySetread(InputStream inputStream, Map<String, Extension<?>> extensions) static DependencySetreadDefault(ClassLoader loader) static DependencySetreadDefault(ClassLoader loader, Map<String, Extension<?>> extensions) static DependencySetreadFromClasspathResource(ClassLoader loader, String resourceName) static DependencySetreadFromClasspathResource(ClassLoader loader, String resourceName, Map<String, Extension<?>> extensions) Returns the value of therepositoriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DependencySet
public DependencySet(List<String> repositories, List<Dependency> dependencies, Map<String, Extension<?>> extensions, Map<String, ?> extensionData) Creates an instance of aDependencySetrecord class.- Parameters:
repositories- the value for therepositoriesrecord componentdependencies- the value for thedependenciesrecord componentextensions- the value for theextensionsrecord componentextensionData- the value for theextensionDatarecord component
-
-
Method Details
-
defaultExtensions
-
readDefault
-
readDefault
-
readFromClasspathResource
-
readFromClasspathResource
public static DependencySet readFromClasspathResource(ClassLoader loader, String resourceName, Map<String, Extension<?>> extensions) -
read
- Throws:
IOException
-
read
public static DependencySet read(InputStream inputStream, Map<String, Extension<?>> extensions) throws IOException- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
repositories
Returns the value of therepositoriesrecord component.- Returns:
- the value of the
repositoriesrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
extensions
Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-
extensionData
Returns the value of theextensionDatarecord component.- Returns:
- the value of the
extensionDatarecord component
-