| Modifier and Type | Class and Description |
|---|---|
| private static class | Euclidean2D.
Holder for the instance. |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Serializable version identifier. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getDimension()
Implements org. Get the dimension of the space. |
| public static Euclidean2D | |
| public Euclidean1D | getSubSpace()
Implements org. Get the n-1 dimension subspace of this space. |
| private Object |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier. | |
| Euclidean2D | back to summary |
|---|---|
| private Euclidean2D() Private constructor for the singleton. | |
| getDimension | back to summary |
|---|---|
| public int getDimension() Implements org. Doc from org. Get the dimension of the space.
| |
| getInstance | back to summary |
|---|---|
| public static Euclidean2D getInstance() Get the unique instance.
| |
| getSubSpace | back to summary |
|---|---|
| public Euclidean1D getSubSpace() Implements org. Doc from org. Get the n-1 dimension subspace of this space.
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Handle deserialization of the singleton.
| |
We use here the Initialization On Demand Holder Idiom.
| Modifier and Type | Field and Description |
|---|---|
| private static final Euclidean2D | INSTANCE
Cached field instance. |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| private static final Euclidean2D INSTANCE Cached field instance. | |
| LazyHolder | back to summary |
|---|---|
| private LazyHolder() | |