public class Shape extends Object implements ShapeDescriptor
Guarded.EnsureThat, Guarded.New
Constructor and Description |
---|
Shape(ShapeData shapeData,
ShapeGenerator generator) |
Modifier and Type | Method and Description |
---|---|
ShapeGenerator |
getDescriptorGenerator()
Deprecated.
|
Object |
getGuardObject()
Gets the guard object associated to the generated descriptors/utilities.
|
ShapeData |
getShapeData() |
byte[] |
toByteArray() |
public Shape(ShapeData shapeData, ShapeGenerator generator)
public byte[] toByteArray()
toByteArray
in interface ShapeDescriptor
public ShapeGenerator getDescriptorGenerator()
ShapeDescriptor
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
.