Interface GeometricShapeFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract AdimensionalShape<S, A> adimensional() A special shape which does not occupy space and does not intersect with any other, not even with itself.
      abstract Shape<S, A> requireCompatible(Shape<?, ?> shape) Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • adimensional

         abstract AdimensionalShape<S, A> adimensional()

        A special shape which does not occupy space and does not intersect with any other, not even with itself.

      • requireCompatible

         abstract Shape<S, A> requireCompatible(Shape<?, ?> shape)

        Requires that the given shape is compatible with the ones provided by this factory, otherwise throws an exception.

        Parameters:
        shape - the shape to check
        Returns:

        the same shape