net.degreedays.api
Class FailureResponse.Builder

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

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

A builder class for creating immutable FailureResponse 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
FailureResponse.Builder()
           
 
Method Summary
 FailureResponse build()
           
 FailureResponse.Builder setFailure(Failure failure)
           
 FailureResponse.Builder setMetadata(ResponseMetadata metadata)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailureResponse.Builder

public FailureResponse.Builder()
Method Detail

setMetadata

public FailureResponse.Builder setMetadata(ResponseMetadata metadata)

setFailure

public FailureResponse.Builder setFailure(Failure failure)

build

public FailureResponse build()


www.degreedays.net/api/