org.expasy.jpl.commons.collection
Class Interval.Builder
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Interval.Builder
public Interval.Builder(double from,
double to)
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.