Record Class DimensionPoolOperationResult
java.lang.Object
java.lang.Record
net.thomilist.dimensionalinventories.module.builtin.pool.DimensionPoolOperationResult
public record DimensionPoolOperationResult(DimensionPoolOperation request, DimensionPoolOperation operation, String target, String from, String to, boolean success)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDimensionPoolOperationResult(DimensionPoolOperation request, DimensionPoolOperation operation, String target, String from, String to, boolean success) Creates an instance of aDimensionPoolOperationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.request()Returns the value of therequestrecord component.booleansuccess()Returns the value of thesuccessrecord component.target()Returns the value of thetargetrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DimensionPoolOperationResult
public DimensionPoolOperationResult(DimensionPoolOperation request, DimensionPoolOperation operation, String target, String from, String to, boolean success) Creates an instance of aDimensionPoolOperationResultrecord class.- Parameters:
request- the value for therequestrecord componentoperation- the value for theoperationrecord componenttarget- the value for thetargetrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentsuccess- the value for thesuccessrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-