org.deegree.coverage.rangeset
Enum Interval.Closure

java.lang.Object
  extended by java.lang.Enum<Interval.Closure>
      extended by org.deegree.coverage.rangeset.Interval.Closure
All Implemented Interfaces:
Serializable, Comparable<Interval.Closure>
Enclosing class:
Interval<T extends Comparable<T>,R extends Comparable<R>>

public static enum Interval.Closure
extends Enum<Interval.Closure>

The Closure of an interval

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Enum Constant Summary
closed
          closed
closed_open
          closed-open
open
          open
open_closed
          open-closed
 
Field Summary
 String begin
          simple boundary representation of the beginning of an interval
 String end
          simple boundary representation of the end of an interval
 
Method Summary
static Interval.Closure fromString(String closureValue)
           
static Interval.Closure valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Interval.Closure[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

closed

public static final Interval.Closure closed
closed


open

public static final Interval.Closure open
open


open_closed

public static final Interval.Closure open_closed
open-closed


closed_open

public static final Interval.Closure closed_open
closed-open

Field Detail

begin

public String begin
simple boundary representation of the beginning of an interval


end

public String end
simple boundary representation of the end of an interval

Method Detail

values

public static Interval.Closure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Interval.Closure c : Interval.Closure.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Interval.Closure valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromString

public static Interval.Closure fromString(String closureValue)
Parameters:
closureValue - to be mapped, '-' will be replaced with '_'
Returns:
the closure value or closed.


Copyright © 2011. All Rights Reserved.