Record Class NativeLibraryResult
java.lang.Object
java.lang.Record
dev.engine.core.native_.NativeLibraryResult
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNativeLibraryResult(boolean isAvailable, Path libraryPath) Creates an instance of aNativeLibraryResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.executablePath(String name) Full path to an executable within the resolved library directoryfinal inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAvailablerecord component.Returns the value of thelibraryPathrecord component.The directory path for LD_LIBRARY_PATH / DYLD_LIBRARY_PATH / PATHfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
UNAVAILABLE
-
-
Constructor Details
-
NativeLibraryResult
Creates an instance of aNativeLibraryResultrecord class.- Parameters:
isAvailable- the value for theisAvailablerecord componentlibraryPath- the value for thelibraryPathrecord component
-
-
Method Details
-
executablePath
-
librarySearchPath
The directory path for LD_LIBRARY_PATH / DYLD_LIBRARY_PATH / PATH -
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isAvailable
public boolean isAvailable()Returns the value of theisAvailablerecord component.- Returns:
- the value of the
isAvailablerecord component
-
libraryPath
Returns the value of thelibraryPathrecord component.- Returns:
- the value of the
libraryPathrecord component
-