Record Class Resources
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.api.Resources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncpuLimit()Returns the value of thecpuLimitrecord component.Returns the value of thecpuRequestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thememoryLimitrecord component.Returns the value of thememoryRequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Resources
Creates an instance of aResourcesrecord class.- Parameters:
memoryRequest- the value for thememoryRequestrecord componentmemoryLimit- the value for thememoryLimitrecord componentcpuRequest- the value for thecpuRequestrecord componentcpuLimit- the value for thecpuLimitrecord component
-
-
Method Details
-
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). -
memoryRequest
Returns the value of thememoryRequestrecord component.- Returns:
- the value of the
memoryRequestrecord component
-
memoryLimit
Returns the value of thememoryLimitrecord component.- Returns:
- the value of the
memoryLimitrecord component
-
cpuRequest
Returns the value of thecpuRequestrecord component.- Returns:
- the value of the
cpuRequestrecord component
-
cpuLimit
Returns the value of thecpuLimitrecord component.- Returns:
- the value of the
cpuLimitrecord component
-