Class CosObjectRefAdapter
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.util.AbstractRefAdapter<CosObject>
-
- com.adobe.internal.pdftoolkit.core.cos.CosObjectRefAdapter
-
public class CosObjectRefAdapter extends AbstractRefAdapter<CosObject>
This class keeps the reference of CosObject and overrides equals() method. This class can be used as a wrapper of CosObject where we don't want to do deep equality checks but only reference checking.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static CosObjectRefAdapter
newInstance(CosObject cosObject)
returns new instance of CosObjectRefHolder.-
Methods inherited from class com.adobe.internal.pdftoolkit.core.util.AbstractRefAdapter
getObject, hashCode
-
-
-
-
Method Detail
-
newInstance
public static CosObjectRefAdapter newInstance(CosObject cosObject)
returns new instance of CosObjectRefHolder.- Parameters:
cosObject
-- Returns:
- CosObjectRefHolder
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in classAbstractRefAdapter<CosObject>
-
-