Package net.minecraft
Record Class TracingExecutor
java.lang.Object
java.lang.Record
net.minecraft.TracingExecutor
- All Implemented Interfaces:
Executor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutorService
The field for theservice
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTracingExecutor
(ExecutorService service) Creates an instance of aTracingExecutor
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.void
final int
hashCode()
Returns a hash code value for this object.service()
Returns the value of theservice
record component.void
shutdownAndAwait
(long p_372802_, TimeUnit p_373037_) final String
toString()
Returns a string representation of this record class.private static Runnable
wrapUnnamed
(Runnable p_372957_)
-
Field Details
-
service
The field for theservice
record component.
-
-
Constructor Details
-
TracingExecutor
Creates an instance of aTracingExecutor
record class.- Parameters:
service
- the value for theservice
record component
-
-
Method Details
-
forName
-
execute
-
shutdownAndAwait
-
wrapUnnamed
-
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)
. -
service
Returns the value of theservice
record component.- Returns:
- the value of the
service
record component
-