Class Euclidean3D

  • All Implemented Interfaces:
    java.io.Serializable, Space

    public class Euclidean3D
    extends java.lang.Object
    implements java.io.Serializable, Space
    This class implements a three-dimensional space.
    Since:
    3.0
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  Euclidean3D.LazyHolder
      Holder for the instance.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Serializable version identifier.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Euclidean3D()
      Private constructor for the singleton.
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serializable version identifier.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Euclidean3D

        private Euclidean3D()
        Private constructor for the singleton.
    • Method Detail

      • getInstance

        public static Euclidean3D getInstance()
        Get the unique instance.
        Returns:
        the unique instance
      • getDimension

        public int getDimension()
        Get the dimension of the space.
        Specified by:
        getDimension in interface Space
        Returns:
        dimension of the space
      • readResolve

        private java.lang.Object readResolve()
        Handle deserialization of the singleton.
        Returns:
        the singleton instance