org.expasy.jpl.commons.collection
Class Interval.Builder

java.lang.Object
  extended by org.expasy.jpl.commons.collection.Interval.Builder
All Implemented Interfaces:
InstanceBuilder<Interval>
Enclosing class:
Interval

public static class Interval.Builder
extends Object
implements InstanceBuilder<Interval>


Constructor Summary
Interval.Builder(double from, double to)
           
 
Method Summary
 Interval build()
          Build an instance of T-type object.
 Interval.Builder cache()
           
 Interval.Builder excludeLowerBound()
           
 Interval.Builder includeUpperBound()
           
 Interval.Builder precision(int precision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interval.Builder

public Interval.Builder(double from,
                        double to)
Method Detail

cache

public Interval.Builder cache()

excludeLowerBound

public Interval.Builder excludeLowerBound()

includeUpperBound

public Interval.Builder includeUpperBound()

precision

public Interval.Builder precision(int precision)

build

public Interval build()
               throws BuilderException
Description copied from interface: InstanceBuilder
Build an instance of T-type object.

Specified by:
build in interface InstanceBuilder<Interval>
Returns:
an instance of T.
Throws:
BuilderException - - if conditions to build T are not satisfied.


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.