Package org.openjdk.jmc.common.unit
Class QuantityRange.WithExtent<U extends TypedUnit<U>>
- java.lang.Object
-
- org.openjdk.jmc.common.unit.QuantityRange<U>
-
- org.openjdk.jmc.common.unit.QuantityRange.WithExtent<U>
-
- All Implemented Interfaces:
IDisplayable
,IRange<IQuantity>
- Enclosing class:
- QuantityRange<U extends TypedUnit<U>>
private static class QuantityRange.WithExtent<U extends TypedUnit<U>> extends QuantityRange<U>
-
-
Field Summary
Fields Modifier and Type Field Description private ITypedQuantity<LinearUnit>
extent
-
Fields inherited from class org.openjdk.jmc.common.unit.QuantityRange
start
-
Fields inherited from interface org.openjdk.jmc.common.IDisplayable
AUTO, EXACT, VERBOSE
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WithExtent(ITypedQuantity<U> start, ITypedQuantity<LinearUnit> extent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
IQuantity
getCenter()
ITypedQuantity<U>
getEnd()
ITypedQuantity<LinearUnit>
getExtent()
int
hashCode()
boolean
isPoint()
-
Methods inherited from class org.openjdk.jmc.common.unit.QuantityRange
createInfinite, createPoint, createWithEnd, createWithExtent, displayUsing, getStart, intersection
-
-
-
-
Field Detail
-
extent
private final ITypedQuantity<LinearUnit> extent
-
-
Constructor Detail
-
WithExtent
private WithExtent(ITypedQuantity<U> start, ITypedQuantity<LinearUnit> extent)
-
-
Method Detail
-
getEnd
public ITypedQuantity<U> getEnd()
-
getCenter
public IQuantity getCenter()
- Returns:
- the center of the range
-
getExtent
public ITypedQuantity<LinearUnit> getExtent()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-