Class SharedObject.Reference<T extends SharedObject>
java.lang.Object
com.ibm.icu.impl.coll.SharedObject.Reference<T>
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
SharedObject
public static final class SharedObject.Reference<T extends SharedObject>
extends Object
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Cleaner.Cleanableprivate static final Cleanerprivate final SharedObject.SharedObjectHolder<T> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLEANER
-
cleanable
-
-
Constructor Details
-
Reference
-
-
Method Details
-
readOnly
-
copyOnWrite
-
close
It's recommended to implement AutoCloseable in a class utilizing Java Cleaner. Although it's currently not used by ICU4J implementation, this design allow ICU4J developer to use try-with-resource statement to close the resource automatically.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-