Class MetaJavaPoint2D
- java.lang.Object
-
- science.aist.imaging.api.domain.AbstractJavaPoint<JavaPoint2D>
-
- science.aist.imaging.api.domain.twodimensional.JavaPoint2D
-
- science.aist.imaging.api.domain.twodimensional.MetaJavaPoint2D
-
- All Implemented Interfaces:
Serializable
public class MetaJavaPoint2D extends JavaPoint2D
JavaPoint which is extended by Meta Information
- Since:
- 1.0
- Author:
- Andreas Pointner
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.domain.AbstractJavaPoint
x, y, z
-
-
Constructor Summary
Constructors Constructor Description MetaJavaPoint2D(double x, double y)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
<T> T
getMetaInfo(String key)
Returns the meta information for a specific key and casts it to <T>int
hashCode()
<T> void
setMetaInfo(String key, T val)
Sets a meta information element-
Methods inherited from class science.aist.imaging.api.domain.twodimensional.JavaPoint2D
add, calculateUnify, cross, div, dot, mult, mult, rotate, rotate, sub
-
Methods inherited from class science.aist.imaging.api.domain.AbstractJavaPoint
equals, getIntX, getIntY, getIntZ, pointDistance, positionalEqual, positionalEqual, xDistance, yDistance, zDistance
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classJavaPoint2D
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classJavaPoint2D
-
getMetaInfo
public <T> T getMetaInfo(String key)
Returns the meta information for a specific key and casts it to <T>- Type Parameters:
T
- the type of the value- Parameters:
key
- the key of the meta information- Returns:
- the value if the key exists, else null
-
setMetaInfo
public <T> void setMetaInfo(String key, T val)
Sets a meta information element- Type Parameters:
T
- the type of the value- Parameters:
key
- the key of the meta informationval
- the value of the meta information
-
-