net.degreedays.api.data
Class Station.Builder

java.lang.Object
  extended by net.degreedays.api.data.Station.Builder
Enclosing class:
Station

public static final class Station.Builder
extends java.lang.Object

A builder class for creating immutable Station objects e.g. for testing purposes.

Instances of this builder class are designed for single-threaded use only. It's fine to create and use instances in multiple concurrent threads, but, in the absence of external synchronization, the use of each individual builder instance should be restricted to one thread only.


Constructor Summary
Station.Builder()
           
 
Method Summary
 Station build()
           
 Station.Builder setDisplayName(java.lang.String displayName)
           
 Station.Builder setElevation(Distance elevation)
           
 Station.Builder setId(java.lang.String stationId)
           
 Station.Builder setLongLat(LongLat longLat)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Station.Builder

public Station.Builder()
Method Detail

setId

public Station.Builder setId(java.lang.String stationId)

setLongLat

public Station.Builder setLongLat(LongLat longLat)

setElevation

public Station.Builder setElevation(Distance elevation)

setDisplayName

public Station.Builder setDisplayName(java.lang.String displayName)

build

public Station build()


www.degreedays.net/api/