Class PGbox2d

    • Constructor Detail

      • PGbox2d

        public PGbox2d()
        Constructs an instance.
      • PGbox2d

        public PGbox2d​(Point llb,
                       Point urt)
        Constructs an instance.
        Parameters:
        llb - lower-left point
        urt - upper-right point
    • Method Detail

      • getPGtype

        public String getPGtype()
        Description copied from class: PGboxbase
        The Postgres type we have (same construct as getPrefix())
        Specified by:
        getPGtype in class PGboxbase
        Returns:
        String containing the name of the type for this box.
      • getPrefix

        public String getPrefix()
        Description copied from class: PGboxbase
        The Prefix we have in WKT rep. I use an abstract method here so we do not need to replicate the String object in every instance.
        Specified by:
        getPrefix in class PGboxbase
        Returns:
        the prefix, as a string
      • newInstance

        protected PGboxbase newInstance()
        Description copied from class: PGboxbase
        Obtain a new instance of a PGboxbase We could have used this.getClass().newInstance() here, but this forces us dealing with InstantiationException and IllegalAccessException. Due to the PGObject.clone() brokennes that does not allow clone() to throw CloneNotSupportedException, we cannot even pass this exceptions down to callers in a sane way.
        Specified by:
        newInstance in class PGboxbase
        Returns:
        a new instance of PGboxbase