@Test public void testToString() { final MeasurementRange<Float> range = MeasurementRange.create(10f, 20f, MetricPrefix.KILO(SI.METRE)); assertEquals("[10.0, 20.0] km", range.toString()); }
public static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units) { return create(minimum, true, maximum, true, units); }
MeasurementRange extends NumberRange<T> { public static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units) { return create(minimum, true, maximum, true, units); } }
MeasurementRange extends NumberRange<T> { public static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units) { return create(minimum, true, maximum, true, units); } MeasurementRange(
            final Class<T> type,
            final T minimum,
            final boolean isMinIncluded,
            final T maximum,
            final boolean isMaxIncluded,
            final Unit<?> units);  MeasurementRange(final Range<T> range, final Unit<?> units); private  MeasurementRange(Class<T> type, Range<? extends Number> range, final Unit<?> units); }
MeasurementRange extends NumberRange<T> { public static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units) { return create(minimum, true, maximum, true, units); } MeasurementRange(
            final Class<T> type,
            final T minimum,
            final boolean isMinIncluded,
            final T maximum,
            final boolean isMaxIncluded,
            final Unit<?> units);  MeasurementRange(final Range<T> range, final Unit<?> units); private  MeasurementRange(Class<T> type, Range<? extends Number> range, final Unit<?> units); static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units); static MeasurementRange<Float> create(
            float minimum,
            boolean isMinIncluded,
            float maximum,
            boolean isMaxIncluded,
            Unit<?> units); static MeasurementRange<Double> create(double minimum, double maximum, Unit<?> units); static MeasurementRange<Double> create(
            double minimum,
            boolean isMinIncluded,
            double maximum,
            boolean isMaxIncluded,
            Unit<?> units); @Override Unit<?> getUnits(); MeasurementRange convertTo(final Unit<?> targetUnits); @SuppressWarnings("unchecked") @Override MeasurementRange<N> castTo(Class<N> type); @Override MeasurementRange union(final Range range); @Override MeasurementRange intersect(final Range range); @Override MeasurementRange[] subtract(final Range range); @Override boolean equals(final Object object); @Override int hashCode(); }
MeasurementRange extends NumberRange<T> { public static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units) { return create(minimum, true, maximum, true, units); } MeasurementRange(
            final Class<T> type,
            final T minimum,
            final boolean isMinIncluded,
            final T maximum,
            final boolean isMaxIncluded,
            final Unit<?> units);  MeasurementRange(final Range<T> range, final Unit<?> units); private  MeasurementRange(Class<T> type, Range<? extends Number> range, final Unit<?> units); static MeasurementRange<Float> create(float minimum, float maximum, Unit<?> units); static MeasurementRange<Float> create(
            float minimum,
            boolean isMinIncluded,
            float maximum,
            boolean isMaxIncluded,
            Unit<?> units); static MeasurementRange<Double> create(double minimum, double maximum, Unit<?> units); static MeasurementRange<Double> create(
            double minimum,
            boolean isMinIncluded,
            double maximum,
            boolean isMaxIncluded,
            Unit<?> units); @Override Unit<?> getUnits(); MeasurementRange convertTo(final Unit<?> targetUnits); @SuppressWarnings("unchecked") @Override MeasurementRange<N> castTo(Class<N> type); @Override MeasurementRange union(final Range range); @Override MeasurementRange intersect(final Range range); @Override MeasurementRange[] subtract(final Range range); @Override boolean equals(final Object object); @Override int hashCode();  }