D - P - @Beta @PublicAPI public abstract class AbstractShapeGenerator<D extends ShapeDescriptor,P extends AbstractShapeGeneratorParameter> extends Object implements DescriptorGenerator<D>
Guarded.EnsureThat, Guarded.New| Modifier and Type | Field and Description |
|---|---|
protected P |
parameters |
| Constructor and Description |
|---|
AbstractShapeGenerator(P parameters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
D |
fromString(String desc)
Builds a descriptor from its string representation.
|
D |
getBareDescriptor(D descriptor)
Get bare-only form of a descriptor.
|
Object |
getGuardObject()
Gets the guard object associated to the generated descriptors/utilities.
|
P |
getParameters()
Gets the parameter object.
|
int |
hashCode() |
byte[] |
toByteArray(D desc)
Creates the byte array representation of a descriptor object.
|
String |
toString() |
String |
toString(D desc)
Creates the String representation of a descriptor object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparisonContextFactory, defaultComparison, generateDescriptor, getDefaultComparatorfromByteArray, serializerIsEqualWithprotected final P extends AbstractShapeGeneratorParameter parameters
public AbstractShapeGenerator(P parameters)
public byte[] toByteArray(D desc)
DescriptorSerializerThe descriptors bare form can be reconstructed using DescriptorSerializer.fromByteArray(byte[]).
toByteArray in interface DescriptorSerializer<D extends ShapeDescriptor>desc - Descriptor (only bare form is considered)public String toString(D desc)
DescriptorSerializerThe descriptors bare form can be reconstructed using DescriptorSerializer.fromString(java.lang.String).
toString in interface DescriptorSerializer<D extends ShapeDescriptor>desc - Descriptor (only bare form is considered)public D fromString(String desc)
DescriptorSerializerPlease note that the compatibility of this (the reconstructing) DescriptorGenerator, regarding to the
serializing generator (on which DescriptorSerializer.toString(com.chemaxon.descriptors.common.Descriptor)
was called to construct the String form) is not checked; compatibility must be ensured by the user application.
fromString in interface DescriptorSerializer<D extends ShapeDescriptor>desc - String representationpublic P getParameters()
DescriptorGeneratorgetParameters in interface DescriptorGenerator<D extends ShapeDescriptor>public D getBareDescriptor(D descriptor)
DescriptorGeneratorgetBareDescriptor in interface DescriptorGenerator<D extends ShapeDescriptor>descriptor - A descriptor's rich or bare formpublic 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.