Record Class SimpleContainer.ActiveClose
java.lang.Object
java.lang.Record
com.ultikits.ultitools.context.SimpleContainer.ActiveClose
- Enclosing class:
SimpleContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CountDownLatchThe field for thedonerecord component.private final ThreadThe field for theownerrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateActiveClose(Thread owner, CountDownLatch done) Creates an instance of aActiveCloserecord class. -
Method Summary
Modifier and TypeMethodDescriptiondone()Returns the value of thedonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
owner
The field for theownerrecord component. -
done
The field for thedonerecord component.
-
-
Constructor Details
-
ActiveClose
Creates an instance of aActiveCloserecord class.- Parameters:
owner- the value for theownerrecord componentdone- the value for thedonerecord 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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
done
Returns the value of thedonerecord component.- Returns:
- the value of the
donerecord component
-