|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.geometry.euclidean.oned.Euclidean1D
public class Euclidean1D
This class implements a one-dimensional space.
Nested Class Summary | |
---|---|
private static class |
Euclidean1D.LazyHolder
Holder for the instance. |
Field Summary | |
---|---|
private static long |
serialVersionUID
Serializable version identifier. |
Constructor Summary | |
---|---|
private |
Euclidean1D()
Private constructor for the singleton. |
Method Summary | |
---|---|
int |
getDimension()
Get the dimension of the space. |
static Euclidean1D |
getInstance()
Get the unique instance. |
Space |
getSubSpace()
Get the n-1 dimension subspace of this space. |
private Object |
readResolve()
Handle deserialization of the singleton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
private Euclidean1D()
Method Detail |
---|
public static Euclidean1D getInstance()
public int getDimension()
getDimension
in interface Space
public Space getSubSpace() throws MathUnsupportedOperationException
As the 1-dimension Euclidean space does not have proper sub-spaces,
this method always throws a MathUnsupportedOperationException
getSubSpace
in interface Space
MathUnsupportedOperationException
- in all casesSpace.getDimension()
private Object readResolve()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |