@Test public void toStringTest() { Tile tile = new Tile(TILE_X, TILE_Y, ZOOM_LEVEL); Assert.assertEquals(TILE_TO_STRING, tile.toString()); }
@Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("tileX="); stringBuilder.append(this.tileX); stringBuilder.append(", tileY="); stringBuilder.append(this.tileY); stringBuilder.append(", zoomLevel="); stringBuilder.append(this.zoomLevel); return stringBuilder.toString(); }
Tile implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("tileX="); stringBuilder.append(this.tileX); stringBuilder.append(", tileY="); stringBuilder.append(this.tileY); stringBuilder.append(", zoomLevel="); stringBuilder.append(this.zoomLevel); return stringBuilder.toString(); } }
Tile implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("tileX="); stringBuilder.append(this.tileX); stringBuilder.append(", tileY="); stringBuilder.append(this.tileY); stringBuilder.append(", zoomLevel="); stringBuilder.append(this.zoomLevel); return stringBuilder.toString(); } Tile(long tileX, long tileY, byte zoomLevel); }
Tile implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("tileX="); stringBuilder.append(this.tileX); stringBuilder.append(", tileY="); stringBuilder.append(this.tileY); stringBuilder.append(", zoomLevel="); stringBuilder.append(this.zoomLevel); return stringBuilder.toString(); } Tile(long tileX, long tileY, byte zoomLevel); @Override boolean equals(Object obj); long getPixelX(); long getPixelY(); @Override int hashCode(); @Override String toString(); }
Tile implements Serializable { @Override public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("tileX="); stringBuilder.append(this.tileX); stringBuilder.append(", tileY="); stringBuilder.append(this.tileY); stringBuilder.append(", zoomLevel="); stringBuilder.append(this.zoomLevel); return stringBuilder.toString(); } Tile(long tileX, long tileY, byte zoomLevel); @Override boolean equals(Object obj); long getPixelX(); long getPixelY(); @Override int hashCode(); @Override String toString(); static final int TILE_SIZE; final long tileX; final long tileY; final byte zoomLevel; }