Package slash.navigation.maps.tileserver
Record Class TileServer
java.lang.Object
java.lang.Record
slash.navigation.maps.tileserver.TileServer
- All Implemented Interfaces:
Item
public record TileServer(String id, String description, String urlPattern, List<String> hosts, boolean active, int minZoom, int maxZoom, String copyright, String copyrightText)
extends Record
implements Item
Description of a tile server that serves an online map.
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.Returns the value of thecopyrightrecord component.Returns the value of thecopyrightTextrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.getUrl()final inthashCode()Returns a hash code value for this object.hosts()Returns the value of thehostsrecord component.id()Returns the value of theidrecord component.intmaxZoom()Returns the value of themaxZoomrecord component.intminZoom()Returns the value of theminZoomrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theurlPatternrecord component.
-
Constructor Details
-
TileServer
public TileServer(String id, String description, String urlPattern, List<String> hosts, boolean active, int minZoom, int maxZoom, String copyright, String copyrightText) Creates an instance of aTileServerrecord class.- Parameters:
id- the value for theidrecord componentdescription- the value for thedescriptionrecord componenturlPattern- the value for theurlPatternrecord componenthosts- the value for thehostsrecord componentactive- the value for theactiverecord componentminZoom- the value for theminZoomrecord componentmaxZoom- the value for themaxZoomrecord componentcopyright- the value for thecopyrightrecord componentcopyrightText- the value for thecopyrightTextrecord component
-
-
Method Details
-
getUrl
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceItem- Returns:
- the value of the
descriptionrecord component
-
urlPattern
Returns the value of theurlPatternrecord component.- Returns:
- the value of the
urlPatternrecord component
-
hosts
Returns the value of thehostsrecord component.- Returns:
- the value of the
hostsrecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
minZoom
public int minZoom()Returns the value of theminZoomrecord component.- Returns:
- the value of the
minZoomrecord component
-
maxZoom
public int maxZoom()Returns the value of themaxZoomrecord component.- Returns:
- the value of the
maxZoomrecord component
-
copyright
Returns the value of thecopyrightrecord component.- Returns:
- the value of the
copyrightrecord component
-
copyrightText
Returns the value of thecopyrightTextrecord component.- Returns:
- the value of the
copyrightTextrecord component
-