Record Class DependencySet

java.lang.Object
java.lang.Record
xyz.jpenilla.gremlin.runtime.DependencySet

@NullMarked public record DependencySet(List<String> repositories, List<Dependency> dependencies, Map<String,Extension<?>> extensions, Map<String,?> extensionData) extends Record
  • Constructor Details

    • DependencySet

      public DependencySet(List<String> repositories, List<Dependency> dependencies, Map<String,Extension<?>> extensions, Map<String,?> extensionData)
      Creates an instance of a DependencySet record class.
      Parameters:
      repositories - the value for the repositories record component
      dependencies - the value for the dependencies record component
      extensions - the value for the extensions record component
      extensionData - the value for the extensionData record component
  • Method Details

    • defaultExtensions

      public static Map<String,Extension<?>> defaultExtensions()
    • readDefault

      public static DependencySet readDefault(ClassLoader loader)
    • readDefault

      public static DependencySet readDefault(ClassLoader loader, Map<String,Extension<?>> extensions)
    • readFromClasspathResource

      public static DependencySet readFromClasspathResource(ClassLoader loader, String resourceName)
    • readFromClasspathResource

      public static DependencySet readFromClasspathResource(ClassLoader loader, String resourceName, Map<String,Extension<?>> extensions)
    • read

      public static DependencySet read(InputStream inputStream) throws IOException
      Throws:
      IOException
    • read

      public static DependencySet read(InputStream inputStream, Map<String,Extension<?>> extensions) throws IOException
      Throws:
      IOException
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • repositories

      public List<String> repositories()
      Returns the value of the repositories record component.
      Returns:
      the value of the repositories record component
    • dependencies

      public List<Dependency> dependencies()
      Returns the value of the dependencies record component.
      Returns:
      the value of the dependencies record component
    • extensions

      public Map<String,Extension<?>> extensions()
      Returns the value of the extensions record component.
      Returns:
      the value of the extensions record component
    • extensionData

      public Map<String,?> extensionData()
      Returns the value of the extensionData record component.
      Returns:
      the value of the extensionData record component