public class RangeFactory extends Object
Range
object for the specific data type.
This Range can have 2 bounds or be a single-point range. If the 2 bound values are equal and
almost one of them is included, then a single-point range is created, else an exception is
thrown. If the minimum bound value is bigger than the maximum value, then the 2 numbers are
inverted at the Range creation time.Modifier and Type | Method and Description |
---|---|
static Range |
convert(Range input,
int dataType) |
static Range |
convertToByteRange(Range input) |
static Range |
convertToDoubleRange(Range input) |
static Range |
convertToFloatRange(Range input) |
static Range |
create(byte minValue,
boolean minIncluded,
byte maxValue,
boolean maxIncluded) |
static Range |
create(byte minValue,
byte maxValue) |
static Range |
create(double minValue,
boolean minIncluded,
double maxValue,
boolean maxIncluded) |
static Range |
create(double minValue,
boolean minIncluded,
double maxValue,
boolean maxIncluded,
boolean nanIncluded) |
static Range |
create(double minValue,
double maxValue) |
static Range |
create(float minValue,
boolean minIncluded,
float maxValue,
boolean maxIncluded) |
static Range |
create(float minValue,
boolean minIncluded,
float maxValue,
boolean maxIncluded,
boolean nanIncluded) |
static Range |
create(float minValue,
float maxValue) |
static Range |
create(int minValue,
boolean minIncluded,
int maxValue,
boolean maxIncluded) |
static Range |
create(int minValue,
int maxValue) |
static Range |
create(long minValue,
boolean minIncluded,
long maxValue,
boolean maxIncluded) |
static Range |
create(short minValue,
boolean minIncluded,
short maxValue,
boolean maxIncluded) |
static Range |
create(short minValue,
short maxValue) |
static Range |
createU(short minValue,
boolean minIncluded,
short maxValue,
boolean maxIncluded) |
static Range |
createU(short minValue,
short maxValue) |
static boolean |
equals(double d1,
double d2) |
static Range |
intersect(Range r1,
Range r2) |
static List<Range> |
subtract(Range r1,
Range r2) |
public static Range create(byte minValue, boolean minIncluded, byte maxValue, boolean maxIncluded)
public static Range createU(short minValue, boolean minIncluded, short maxValue, boolean maxIncluded)
public static Range create(short minValue, boolean minIncluded, short maxValue, boolean maxIncluded)
public static Range create(int minValue, boolean minIncluded, int maxValue, boolean maxIncluded)
public static Range create(float minValue, boolean minIncluded, float maxValue, boolean maxIncluded, boolean nanIncluded)
public static Range create(double minValue, boolean minIncluded, double maxValue, boolean maxIncluded, boolean nanIncluded)
public static Range create(byte minValue, byte maxValue)
public static Range createU(short minValue, short maxValue)
public static Range create(short minValue, short maxValue)
public static Range create(int minValue, int maxValue)
public static Range create(float minValue, float maxValue)
public static Range create(double minValue, double maxValue)
public static Range create(float minValue, boolean minIncluded, float maxValue, boolean maxIncluded)
public static Range create(double minValue, boolean minIncluded, double maxValue, boolean maxIncluded)
public static Range create(long minValue, boolean minIncluded, long maxValue, boolean maxIncluded)
public static boolean equals(double d1, double d2)
Copyright © 2006–2018 GeoSolutions. All rights reserved.