HERE Android SDK Developer's Guide

Size

The class Size is a member of com.here.android.mpa.common .

Class Summary

public final class Size

extends java.lang.Object

Represents size in pixels

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in Size
Constructors

Size ()

Public constructor

Size (int width, int height)

Public constructor

Field Summary

Table 2. Fields in Size
Fields

public int height

Height of the screen in pixels

public int width

Width if the screen in pixels

Method Summary

Table 3. Methods in Size
Methods

public boolean equals (Object other)

For documentation, see java.lang.Object

public int hashCode ()

For documentation, see java.lang.Object

public boolean isNull ()

Has no dimensions

Class Details

Represents size in pixels

Constructor Details

Size ()

Public constructor

Size (int width, int height)

Public constructor

Parameters:

  • width

    Width of screen in pixels

  • height

    Height of screen in pixels

Field Details

public int height

Height of the screen in pixels

public int width

Width if the screen in pixels

Method Details

public boolean equals (Object other)

For documentation, see java.lang.Object

Parameters:

  • other

public int hashCode ()

For documentation, see java.lang.Object

public boolean isNull ()

Has no dimensions

Returns:

Whether this object has no width and height