Class Resolution

    • Constructor Detail

      • Resolution

        public Resolution()
    • Method Detail

      • setWidth

        public void setWidth​(Integer width)

        The screen resolution's width, expressed in pixels.

        Parameters:
        width - The screen resolution's width, expressed in pixels.
      • getWidth

        public Integer getWidth()

        The screen resolution's width, expressed in pixels.

        Returns:
        The screen resolution's width, expressed in pixels.
      • withWidth

        public Resolution withWidth​(Integer width)

        The screen resolution's width, expressed in pixels.

        Parameters:
        width - The screen resolution's width, expressed in pixels.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHeight

        public void setHeight​(Integer height)

        The screen resolution's height, expressed in pixels.

        Parameters:
        height - The screen resolution's height, expressed in pixels.
      • getHeight

        public Integer getHeight()

        The screen resolution's height, expressed in pixels.

        Returns:
        The screen resolution's height, expressed in pixels.
      • withHeight

        public Resolution withHeight​(Integer height)

        The screen resolution's height, expressed in pixels.

        Parameters:
        height - The screen resolution's height, expressed in pixels.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object