| Modifier and Type | Field and Description |
|---|---|
protected ITypedQuantity<U> |
start |
AUTO, EXACT, VERBOSE| Modifier and Type | Method and Description |
|---|---|
static IDisplayable |
createInfinite(IQuantity start,
IQuantity end)
|
static <U extends TypedUnit<U>> |
createPoint(IQuantity start) |
static <U extends TypedUnit<U>> |
createWithEnd(IQuantity start,
IQuantity end) |
static <U extends TypedUnit<U>> |
createWithExtent(IQuantity start,
ITypedQuantity<LinearUnit> extent) |
String |
displayUsing(String formatHint)
Format this object for display purposes, preferably using the formatter hinted by
formatHint. |
abstract ITypedQuantity<U> |
getEnd() |
ITypedQuantity<U> |
getStart() |
static IRange<IQuantity> |
intersection(IRange<IQuantity> a,
IRange<IQuantity> b) |
protected final ITypedQuantity<U extends TypedUnit<U>> start
public static <U extends TypedUnit<U>> IRange<IQuantity> createWithEnd(IQuantity start, IQuantity end)
public static <U extends TypedUnit<U>> IRange<IQuantity> createWithExtent(IQuantity start, ITypedQuantity<LinearUnit> extent)
public static IDisplayable createInfinite(IQuantity start, IQuantity end)
IRange<IQuantity> if start and end both are
non-null. Otherwise, create an IDisplayable that looks like an infinite range, by
treating null values as minus or plus infinity, respectively. This behavior is a consequence
of the current state where IQuantity and thusly IRange<IQuantity> both need to be finite. (A possible change to this state, when all
kinds of quantities support being stored as doubles, is to allow
Double.NEGATIVE_INFINITY and Double.POSITIVE_INFINITY as numerical
quantities. In that case, this method can be replaced with
createWithEnd(IQuantity, IQuantity)).public ITypedQuantity<U> getStart()
public abstract ITypedQuantity<U> getEnd()
public String displayUsing(String formatHint)
IDisplayableformatHint. If no such formatter is defined for this type, the default formatter will
be used.displayUsing in interface IDisplayableformatHint - the format hintCopyright © 2019. All rights reserved.