Record Class Platform
java.lang.Object
java.lang.Record
org.apache.creadur.tentacles.Platform
public record Platform(TentaclesResources tentaclesResources, FileSystem fileSystem, IOSystem ioSystem)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlatform(TentaclesResources tentaclesResources, FileSystem fileSystem, IOSystem ioSystem) Creates an instance of aPlatformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Platformfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileSystemrecord component.final inthashCode()Returns a hash code value for this object.ioSystem()Returns the value of theioSystemrecord component.Returns the value of thetentaclesResourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Platform
Creates an instance of aPlatformrecord class.- Parameters:
tentaclesResources- the value for thetentaclesResourcesrecord componentfileSystem- the value for thefileSystemrecord componentioSystem- the value for theioSystemrecord component
-
-
Method Details
-
aPlatform
-
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). -
tentaclesResources
Returns the value of thetentaclesResourcesrecord component.- Returns:
- the value of the
tentaclesResourcesrecord component
-
fileSystem
Returns the value of thefileSystemrecord component.- Returns:
- the value of the
fileSystemrecord component
-
ioSystem
Returns the value of theioSystemrecord component.- Returns:
- the value of the
ioSystemrecord component
-