net.degreedays.api
Class Failure.Builder

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

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

A builder class for creating immutable Failure 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
Failure.Builder()
           
 
Method Summary
 Failure build()
           
 Failure.Builder setCode(java.lang.String code)
           
 Failure.Builder setMessage(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Failure.Builder

public Failure.Builder()
Method Detail

setCode

public Failure.Builder setCode(java.lang.String code)

setMessage

public Failure.Builder setMessage(java.lang.String message)

build

public Failure build()


www.degreedays.net/api/