Class 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
    • Constructor Detail

      • MetaJavaPoint2D

        public MetaJavaPoint2D​(double x,
                               double y)
        Parameters:
        x - x-coordinate
        y - y-coordinate
    • Method Detail

      • 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 information
        val - the value of the meta information