protected static final class XMLDataNode.DataCastPacket
extends java.lang.Object
DataCastPacket
class is a data class that is
helpful for reducing the number of type-cast operations that
need to occur. This is done by replacing the type-cast check
with a check for null
at the expense of keeping
around more references in memory to the object in question.This kind of strategy works well for objects that are frequently cast to a particular type. Once it has been created, this class is an immutable (read-only) data structure.
Modifier and Type | Field and Description |
---|---|
Dirtyable |
dirtyable
The
Dirtyable view of the data object. |
Element |
element
The
Element view of the data object. |
Folder |
folder
The
Folder view of the data object. |
java.lang.Object |
object
The
Object view of the data object. |
Constructor and Description |
---|
XMLDataNode.DataCastPacket(java.lang.Object obj)
Creates a new instance of
DataCastPacket and
initializes all of its fields. |