Class Size

    • Constructor Detail

      • Size

        public Size​(String source)
        Creates a new Size object parsing a string value.
        Parameters:
        source - String value to parse
      • Size

        public Size​(FloatUnit length,
                    FloatUnit width)
        Parameters:
        length - lenght value
        width - width value
      • Size

        public Size​(FloatUnit length,
                    FloatUnit width,
                    FloatUnit height)
        Parameters:
        length - Length value.
        width - Width value.
        height - Height value.
    • Method Detail

      • getHeight

        public FloatUnit getHeight()
        Height value.
        Returns:
        Height value.
      • getLength

        public FloatUnit getLength()
        Length value.
        Returns:
        Length value.
      • getWidth

        public FloatUnit getWidth()
        Width value.
        Returns:
        Width value.
      • toString

        public String toString()
        Returns a string representation of this object.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.