public class DRShape extends Object implements DRShapeDescriptor
Guarded.EnsureThat, Guarded.New
Constructor and Description |
---|
DRShape(ShapeData shapeData,
DRShapeGenerator generator) |
Modifier and Type | Method and Description |
---|---|
DescriptorGenerator<DRShapeDescriptor> |
getDescriptorGenerator()
Deprecated.
|
Object |
getGuardObject()
Gets the guard object associated to the generated descriptors/utilities.
|
ShapeData |
getShapeData() |
byte[] |
toByteArray() |
public DRShape(ShapeData shapeData, DRShapeGenerator generator)
public byte[] toByteArray()
toByteArray
in interface ShapeDescriptor
public DescriptorGenerator<DRShapeDescriptor> getDescriptorGenerator()
ShapeDescriptor
getDescriptorGenerator
in interface DRShapeDescriptor
getDescriptorGenerator
in interface ShapeDescriptor
public ShapeData getShapeData()
getShapeData
in interface ShapeDescriptor
public Object getGuardObject()
Guarded
This method is intended to use only for ensuring the compatibility of manipulated objects.
Implementations might use the associated DescriptorGenerator
or DescriptorParameters
reference as
the guard object, however it is a non recommended practice to use this method to access the associated generator
to perform further operations on it.
getGuardObject
in interface Guarded
null
.