public final class QuantizedMeshTileCoordinateExtent extends Object implements IEquatable<QuantizedMeshTileCoordinateExtent>, ImmutableValueType
The X coordinate increases from west to east, and the Y coordinate increases from south to north. That is, the origin is in the south-west.
Constructor and Description |
---|
QuantizedMeshTileCoordinateExtent(int level,
int west,
int south,
int east,
int north)
Initializes a new instance from the specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(QuantizedMeshTileCoordinateExtent left,
QuantizedMeshTileCoordinateExtent right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(QuantizedMeshTileCoordinateExtent other)
Indicates whether another instance of this type is exactly equal to this instance.
|
int |
getEast()
Gets the easternmost X coordinate.
|
int |
getLevel()
Gets the zoom level.
|
int |
getNorth()
Gets the northernmost Y coordinate.
|
static QuantizedMeshTileCoordinateExtent |
getOutsideExtent()
Gets a static instance representing extents that are completely outside the bounding
extent of the provider.
|
int |
getSouth()
Gets the southernmost Y coordinate.
|
int |
getWest()
Gets the westernmost X coordinate.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(QuantizedMeshTileCoordinateExtent left,
QuantizedMeshTileCoordinateExtent right)
Returns
true if the two instances are not exactly equal. |
String |
toString()
Returns the string representation of the value of this instance.
|
public QuantizedMeshTileCoordinateExtent(int level, int west, int south, int east, int north)
level
- The zoom level.west
- The westernmost X coordinate.south
- The southernmost Y coordinate.east
- The easternmost X coordinate.north
- The northernmost Y coordinate.ArgumentException
- Thrown when the west
is greater than the
east
, or when the south
is
greater than the north
.public final int getLevel()
public final int getWest()
public final int getSouth()
public final int getEast()
public final int getNorth()
@Nonnull public static QuantizedMeshTileCoordinateExtent getOutsideExtent()
public final boolean equalsType(@Nonnull QuantizedMeshTileCoordinateExtent other)
equalsType
in interface IEquatable<QuantizedMeshTileCoordinateExtent>
other
- The instance to compare to this instance.true
if other
represents the same value as this instance; otherwise false
.public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static boolean equals(@Nonnull QuantizedMeshTileCoordinateExtent left, @Nonnull QuantizedMeshTileCoordinateExtent right)
true
if the two instances are exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
represents the same value as right
; otherwise false
.public static boolean notEquals(@Nonnull QuantizedMeshTileCoordinateExtent left, @Nonnull QuantizedMeshTileCoordinateExtent right)
true
if the two instances are not exactly equal.left
- The instance to compare to right
.right
- The instance to compare to left
.true
if left
does not represent the same value as right
; otherwise false
.