public class Interval.Builder extends Object
Interval class strives to avoid reflexion,
despite being generic class, the Builder inner class is not static. Instead
it is always tied to a particular object, so that it can build new objects from this
specific runtime type.| Modifier and Type | Method and Description |
|---|---|
Interval<T> |
build()
Builds the new interval
|
Interval.Builder |
greater(T start)
Sets the start point of the currently building interval to the given value.
|
Interval.Builder |
greaterEqual(T start)
Sets the start point of the currently building interval to the given value.
|
Interval.Builder |
less(T end)
Sets the end point of the currently building interval to the given value.
|
Interval.Builder |
lessEqual(T end)
Sets the end point of the currently building interval to the given value.
|
public Interval.Builder greater(T start)
greaterEqual(Comparable) method, only
the last call in the subsequence will take effect.start - The value for the start point of the new interval.public Interval.Builder greaterEqual(T start)
greater(Comparable) method, only
the last call in the subsequence will take effect.start - The value for the start point of the new interval.public Interval.Builder less(T end)
lessEqual(Comparable) method, only
the last call in the subsequence will take effect.end - The value for the end point of the new interval.public Interval.Builder lessEqual(T end)
lessEqual(Comparable) method, only
the last call in the subsequence will take effect.end - The value for the end point of the new interval.Copyright © 2016. All rights reserved.