Package com.xebisco.yield.platform
Record Class ApplicationPlatform
java.lang.Object
java.lang.Record
com.xebisco.yield.platform.ApplicationPlatform
- All Implemented Interfaces:
Closeable,AutoCloseable
public record ApplicationPlatform(Map<ApplicationModule,Object> modules)
extends Record
implements Closeable
Represents the platform of the application, containing various managers.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationPlatform(Map<ApplicationModule, Object> modules) Creates an instance of aApplicationPlatformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionGet the audio manager instance.voidclose()final booleanIndicates whether some other object is "equal to" this one.Get the font manager instance.Get the graphics manager instance.final inthashCode()Returns a hash code value for this object.Get the file input/output manager instance.modules()Returns the value of themodulesrecord component.Get the PC input manager instance.Get the texture manager instance.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationPlatform
Creates an instance of aApplicationPlatformrecord class.- Parameters:
modules- the value for themodulesrecord component
-
-
Method Details
-
fontManager
Get the font manager instance.- Returns:
- The font manager instance.
-
textureManager
Get the texture manager instance.- Returns:
- The texture manager instance.
-
pcInputManager
Get the PC input manager instance.- Returns:
- The PC input manager instance.
-
audioManager
Get the audio manager instance.- Returns:
- The audio manager instance.
-
graphicsManager
Get the graphics manager instance.- Returns:
- The graphics manager instance.
-
ioManager
Get the file input/output manager instance.- Returns:
- The file input/output manager instance.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- 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). -
modules
Returns the value of themodulesrecord component.- Returns:
- the value of the
modulesrecord component
-