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 ShapeDescriptorpublic ShapeGenerator getDescriptorGenerator()
ShapeDescriptorgetDescriptorGenerator in interface ShapeDescriptorpublic ShapeData getShapeData()
getShapeData in interface ShapeDescriptorpublic Object getGuardObject()
GuardedThis 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 Guardednull.