Class Size

java.lang.Object
ai.nextbillion.maps.model.Size
All Implemented Interfaces:
StringJoin.UrlValue, java.io.Serializable

public class Size
extends java.lang.Object
implements StringJoin.UrlValue, java.io.Serializable
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int height
    The height of this Size.
    int width
    The width of this Size.
  • Constructor Summary

    Constructors 
    Constructor Description
    Size()
    Serialization constructor.
    Size​(int width, int height)
    Constructs a Size with a height/width pair.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  
    java.lang.String toUrlValue()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • width

      public int width
      The width of this Size.
    • height

      public int height
      The height of this Size.
  • Constructor Details

    • Size

      public Size​(int width, int height)
      Constructs a Size with a height/width pair.
      Parameters:
      height - The height of this Size.
      width - The width of this Size.
    • Size

      public Size()
      Serialization constructor.
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • toUrlValue

      public java.lang.String toUrlValue()
      Specified by:
      toUrlValue in interface StringJoin.UrlValue
      Returns:
      the object, represented as a URL value (not URL encoded).