java.lang.Object
java.lang.Record
org.aya.cli.library.json.LibraryConfig
public record LibraryConfig(@NotNull org.aya.util.Version ayaVersion, @NotNull String name, @NotNull String version, @NotNull Path libraryRoot, @NotNull Path librarySrcRoot, @NotNull Path libraryBuildRoot, @NotNull Path libraryOutRoot, @NotNull kala.collection.immutable.ImmutableSeq<LibraryDependency> deps)
extends Record
The compiler aspect of library description file, with generated settings.
- Implementation Note:
- issue #491
-
Constructor Summary
ConstructorsConstructorDescriptionLibraryConfig(@NotNull org.aya.util.Version ayaVersion, @NotNull String name, @NotNull String version, @NotNull Path libraryRoot, @NotNull Path librarySrcRoot, @NotNull Path libraryBuildRoot, @NotNull Path libraryOutRoot, @NotNull kala.collection.immutable.ImmutableSeq<LibraryDependency> deps) Creates an instance of aLibraryConfigrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.util.VersionReturns the value of theayaVersionrecord component.@NotNull kala.collection.immutable.ImmutableSeq<LibraryDependency>deps()Returns the value of thedepsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PathReturns the value of thelibraryBuildRootrecord component.@NotNull PathReturns the value of thelibraryOutRootrecord component.@NotNull PathReturns the value of thelibraryRootrecord component.@NotNull PathReturns the value of thelibrarySrcRootrecord component.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringversion()Returns the value of theversionrecord component.
-
Constructor Details
-
LibraryConfig
public LibraryConfig(@NotNull @NotNull org.aya.util.Version ayaVersion, @NotNull @NotNull String name, @NotNull @NotNull String version, @NotNull @NotNull Path libraryRoot, @NotNull @NotNull Path librarySrcRoot, @NotNull @NotNull Path libraryBuildRoot, @NotNull @NotNull Path libraryOutRoot, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<LibraryDependency> deps) Creates an instance of aLibraryConfigrecord class.- Parameters:
ayaVersion- the value for theayaVersionrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentlibraryRoot- the value for thelibraryRootrecord componentlibrarySrcRoot- the value for thelibrarySrcRootrecord componentlibraryBuildRoot- the value for thelibraryBuildRootrecord componentlibraryOutRoot- the value for thelibraryOutRootrecord componentdeps- the value for thedepsrecord component
-
-
Method Details
-
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). -
ayaVersion
@NotNull public @NotNull org.aya.util.Version ayaVersion()Returns the value of theayaVersionrecord component.- Returns:
- the value of the
ayaVersionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
libraryRoot
Returns the value of thelibraryRootrecord component.- Returns:
- the value of the
libraryRootrecord component
-
librarySrcRoot
Returns the value of thelibrarySrcRootrecord component.- Returns:
- the value of the
librarySrcRootrecord component
-
libraryBuildRoot
Returns the value of thelibraryBuildRootrecord component.- Returns:
- the value of the
libraryBuildRootrecord component
-
libraryOutRoot
Returns the value of thelibraryOutRootrecord component.- Returns:
- the value of the
libraryOutRootrecord component
-
deps
Returns the value of thedepsrecord component.- Returns:
- the value of the
depsrecord component
-