it.geosolutions.jaiext.range
Class RangeFactory

java.lang.Object
  extended by it.geosolutions.jaiext.range.RangeFactory

public class RangeFactory
extends Object

This class is a factory class which creates a 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.


Method Summary
static Range create(byte minValue, boolean minIncluded, byte maxValue, boolean maxIncluded)
           
static Range create(double minValue, boolean minIncluded, double maxValue, boolean maxIncluded, boolean nanIncluded)
           
static Range create(float minValue, boolean minIncluded, float maxValue, boolean maxIncluded, boolean nanIncluded)
           
static Range create(int minValue, boolean minIncluded, int maxValue, boolean maxIncluded)
           
static Range create(long minValue, boolean minIncluded, long maxValue, boolean maxIncluded)
           
static Range create(short minValue, boolean minIncluded, short maxValue, boolean maxIncluded)
           
static Range createU(short minValue, boolean minIncluded, short maxValue, boolean maxIncluded)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Range create(byte minValue,
                           boolean minIncluded,
                           byte maxValue,
                           boolean maxIncluded)

createU

public static Range createU(short minValue,
                            boolean minIncluded,
                            short maxValue,
                            boolean maxIncluded)

create

public static Range create(short minValue,
                           boolean minIncluded,
                           short maxValue,
                           boolean maxIncluded)

create

public static Range create(int minValue,
                           boolean minIncluded,
                           int maxValue,
                           boolean maxIncluded)

create

public static Range create(float minValue,
                           boolean minIncluded,
                           float maxValue,
                           boolean maxIncluded,
                           boolean nanIncluded)

create

public static Range create(double minValue,
                           boolean minIncluded,
                           double maxValue,
                           boolean maxIncluded,
                           boolean nanIncluded)

create

public static Range create(long minValue,
                           boolean minIncluded,
                           long maxValue,
                           boolean maxIncluded)


Copyright © 2006–2015 GeoSolutions. All rights reserved.