net.degreedays.api.data
Class Source.Builder

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

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

A builder class for creating immutable Source 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
Source.Builder()
           
 
Method Summary
 Source build()
           
 Source.Builder setDistanceFromTarget(Distance distanceFromTarget)
           
 Source.Builder setStation(Station station)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source.Builder

public Source.Builder()
Method Detail

setStation

public Source.Builder setStation(Station station)

setDistanceFromTarget

public Source.Builder setDistanceFromTarget(Distance distanceFromTarget)

build

public Source build()


www.degreedays.net/api/