# Uses of Class
org.apache.sis.measure.NumberRange

Packages that use NumberRange
Package
Description
org.apache.sis.coverage
Functions that associates positions within a bounded space (its domain) to values (its range).
org.apache.sis.image
Provides helper classes for handling Java2D rendered images together with some operations.
org.apache.sis.math
A set of mathematical objects and algebraic utilities.
org.apache.sis.measure
Units of measurements, values related to measurement (like angles and ranges) and their formatters.
org.apache.sis.referencing.operation.builder
Helper classes for creating Math Transforms from a set of points.
org.apache.sis.storage.modifier
A plugin mechanism for modifying some aspects of the resources read by data stores.

- ## Uses of NumberRange in org.apache.sis.coverage

  Methods in org.apache.sis.coverage that return NumberRange
  Modifier and Type
  Method
  Description
  `NumberRange<?>`
  Category.`getSampleRange()`
  Returns the range of values occurring in this category.
  Methods in org.apache.sis.coverage that return types with arguments of type NumberRange
  Modifier and Type
  Method
  Description
  `Optional<NumberRange<?>>`
  SampleDimension.`getSampleRange()`
  Returns the range of values occurring in this sample dimension.
  Methods in org.apache.sis.coverage with parameters of type NumberRange
  Modifier and Type
  Method
  Description
  `SampleDimension.Builder`
  SampleDimension.Builder.`addQualitative(CharSequence name, NumberRange<?> samples)`
  Adds a qualitative category for all samples in the specified range of values.
  `SampleDimension.Builder`
  SampleDimension.Builder.`addQuantitative(CharSequence name, NumberRange<?> samples, NumberRange<?> converted)`
  Constructs a quantitative category mapping samples to real values in the specified range.
  `SampleDimension.Builder`
  SampleDimension.Builder.`addQuantitative(CharSequence name, NumberRange<?> samples, MathTransform1D toUnits, Unit<?> units)`
  Constructs a quantitative category for all samples in the specified range of values.
  `SampleDimension.Builder`
  SampleDimension.Builder.`mapQualitative(CharSequence name, NumberRange<?> samples, float converted)`
  Adds a qualitative category for the given samples values mapped to the specified converted NaN value.
  Constructors in org.apache.sis.coverage with parameters of type NumberRange
  Modifier
  Constructor
  Description
  `protected`
  `Category(CharSequence name, NumberRange<?> samples, MathTransform1D toUnits, Unit<?> units, DoubleToIntFunction toNaN)`
  Constructs a qualitative or quantitative category.

- ## Uses of NumberRange in org.apache.sis.image

  Methods in org.apache.sis.image that return NumberRange
  Modifier and Type
  Method
  Description
  `NumberRange<?>[]`
  PixelIterator.`getSampleRanges()`
  Returns the range of sample values that can be stored in each band of the rendered image or raster.
  Methods in org.apache.sis.image with parameters of type NumberRange
  Modifier and Type
  Method
  Description
  `RenderedImage`
  ImageProcessor.`convert(RenderedImage source, NumberRange<?>[] sourceRanges, MathTransform1D[] converters, DataType targetType)`
  Returns an image with sample values converted by the given functions.
  `static DataType`
  DataType.`forRange(NumberRange<?> range, boolean forceInteger)`
  Returns the smallest data type capable to store the given range of values.
  Method parameters in org.apache.sis.image with type arguments of type NumberRange
  Modifier and Type
  Method
  Description
  `static Colorizer`
  Colorizer.`forRanges(Map<NumberRange<?>, Color[]> colors)`
  Creates a colorizer which will interpolate colors in multiple ranges of values.

- ## Uses of NumberRange in org.apache.sis.math

  Methods in org.apache.sis.math that return NumberRange
  Modifier and Type
  Method
  Description
  `NumberRange<?>`
  Vector.`range()`
  Returns the minimal and maximal values found in this vector.

- ## Uses of NumberRange in org.apache.sis.measure

  Subclasses of NumberRange in org.apache.sis.measure
  Modifier and Type
  Class
  Description
  `class`
  `MeasurementRange<E extends Number & Comparable<? super E>>`
  A range of numbers associated with a unit of measurement.
  Methods in org.apache.sis.measure that return NumberRange
  Modifier and Type
  Method
  Description
  `static <N extends Number & Comparable<? super N>>
  NumberRange<N>`
  NumberRange.`castOrCopy(Range<N> range)`
  Returns the specified `Range` as a `NumberRange` object.
  `<N extends Number & Comparable<? super N>>
  NumberRange<N>`
  NumberRange.`castTo(Class<N> type)`
  Casts this range to the specified type.
  `static NumberRange<Byte>`
  NumberRange.`create(byte minValue, boolean isMinIncluded, byte maxValue, boolean isMaxIncluded)`
  Constructs a range of `byte` values.
  `static NumberRange<Double>`
  NumberRange.`create(double minValue, boolean isMinIncluded, double maxValue, boolean isMaxIncluded)`
  Constructs a range of `double` values.
  `static NumberRange<Float>`
  NumberRange.`create(float minValue, boolean isMinIncluded, float maxValue, boolean isMaxIncluded)`
  Constructs a range of `float` values.
  `static NumberRange<Integer>`
  NumberRange.`create(int minValue, boolean isMinIncluded, int maxValue, boolean isMaxIncluded)`
  Constructs a range of `int` values.
  `static NumberRange<Long>`
  NumberRange.`create(long minValue, boolean isMinIncluded, long maxValue, boolean isMaxIncluded)`
  Constructs a range of `long` values.
  `static NumberRange<Short>`
  NumberRange.`create(short minValue, boolean isMinIncluded, short maxValue, boolean isMaxIncluded)`
  Constructs a range of `short` values.
  `static <N extends Number & Comparable<? super N>>
  NumberRange<N>`
  NumberRange.`create(Class<N> type, N value)`
  Constructs a range containing a single value of the given type.
  `static NumberRange<?>`
  NumberRange.`createBestFit(boolean asFloat, Number minValue, boolean isMinIncluded, Number maxValue, boolean isMaxIncluded)`
  Constructs a range using the smallest integer type or floating point type that can hold the given values.
  `static NumberRange<?>`
  NumberRange.`createBestFit(Number minValue, boolean isMinIncluded, Number maxValue, boolean isMaxIncluded)`
  Constructs a range using the smallest type of `Number` that can hold the given values.
  `static NumberRange<Integer>`
  NumberRange.`createLeftBounded(int minValue, boolean isMinIncluded)`
  Constructs a range of `int` values without upper bound.
  `NumberRange<?>`
  NumberRange.`intersectAny(NumberRange<?> range)`
  Returns the union of this range with the given range.
  `NumberRange<?>[]`
  NumberRange.`subtractAny(NumberRange<?> range)`
  Returns the range of values that are in this range but not in the given range.
  `NumberRange<?>`
  NumberRange.`transform(MathTransform1D converter)`
  Returns this range converted using the given converter.
  `NumberRange<?>`
  NumberRange.`unionAny(NumberRange<?> range)`
  Returns the union of this range with the given range.
  Methods in org.apache.sis.measure with parameters of type NumberRange
  Modifier and Type
  Method
  Description
  `boolean`
  NumberRange.`containsAny(NumberRange<?> range)`
  Returns `true` if the supplied range is fully contained within this range.
  `NumberRange<?>`
  NumberRange.`intersectAny(NumberRange<?> range)`
  Returns the union of this range with the given range.
  `boolean`
  NumberRange.`intersectsAny(NumberRange<?> range)`
  Returns `true` if the supplied range intersects this range.
  `NumberRange<?>[]`
  NumberRange.`subtractAny(NumberRange<?> range)`
  Returns the range of values that are in this range but not in the given range.
  `NumberRange<?>`
  NumberRange.`unionAny(NumberRange<?> range)`
  Returns the union of this range with the given range.

- ## Uses of NumberRange in org.apache.sis.referencing.operation.builder

  Methods in org.apache.sis.referencing.operation.builder that return NumberRange
  Modifier and Type
  Method
  Description
  `NumberRange<Double>`
  LocalizationGridBuilder.`resolveWraparoundAxis(int dimension, int direction, double period)`
  Tries to remove discontinuities in coordinates values caused by anti-meridian crossing.

- ## Uses of NumberRange in org.apache.sis.storage.modifier

  Methods in org.apache.sis.storage.modifier that return types with arguments of type NumberRange
  Modifier and Type
  Method
  Description
  `Optional<NumberRange<?>>`
  CoverageModifier.BandSource.`getSampleRange()`
  Return the minimum and maximum values declared in the coverage metadata, if known.