Object GeometricShapeFactory.Companion
-
- All Implemented Interfaces:
public class GeometricShapeFactory.Companion
Factory methods for Shape.
-
-
Field Summary
Fields Modifier and Type Field Description public final static GeometricShapeFactory.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final <S extends Vector<S>, A extends Transformation<S>, F extends GeometricShapeFactory<S, A>> F
getInstance()
Retrieves a factory of Shape compatible with the given vector type. final static <S extends Vector<S>, A extends Transformation<S>, F extends GeometricShapeFactory<S, A>> F
getInstance(Class<F> type)
Retrieves a factory of Shape compatible with the given space. -
-
Method Detail
-
getInstance
final <S extends Vector<S>, A extends Transformation<S>, F extends GeometricShapeFactory<S, A>> F getInstance()
Retrieves a factory of Shape compatible with the given vector type.
- Returns:
the factory
-
getInstance
final static <S extends Vector<S>, A extends Transformation<S>, F extends GeometricShapeFactory<S, A>> F getInstance(Class<F> type)
Retrieves a factory of Shape compatible with the given space. (This method is meant for compatibility with java).
- Parameters:
type
- The interface of the factory requested- Returns:
the factory
-
-
-
-