Record Class Platform
java.lang.Object
java.lang.Record
dev.engine.core.native_.Platform
Detects the current OS and architecture for native library resolution.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlatform(Platform.OS os, Platform.Arch arch) Creates an instance of aPlatformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarch()Returns the value of thearchrecord component.static Platformcurrent()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Platform identifier string, e.g.os()Returns the value of theosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Platform
Creates an instance of aPlatformrecord class.- Parameters:
os- the value for theosrecord componentarch- the value for thearchrecord component
-
-
Method Details
-
current
-
identifier
Platform identifier string, e.g. "linux-x86_64", "windows-x86_64", "macos-aarch64" -
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. All components in this record class are compared withObjects::equals(Object,Object). -
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
arch
Returns the value of thearchrecord component.- Returns:
- the value of the
archrecord component
-