Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.schema.indexable.tp
Class TpIntervals

java.lang.Object
  extended by com.esri.gpt.catalog.schema.indexable.tp.TpIntervals

public class TpIntervals
extends Object

A collection of timeperiod intervals.


Constructor Summary
TpIntervals()
          Default constructor.
 
Method Summary
 void add(TpInterval interval)
          Adds an interval.
 TpInterval get(int index)
          Gets the value at an index.
 int size()
          The number of items.
 void sort()
          Sorts the intervals.
 List<TpInterval> values()
          The values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TpIntervals

public TpIntervals()
Default constructor.

Method Detail

add

public void add(TpInterval interval)
Adds an interval.

Parameters:
interval - the interval

get

public TpInterval get(int index)
Gets the value at an index.

Parameters:
index - the index
Returns:
the value

size

public int size()
The number of items.

Returns:
the number of items

sort

public void sort()
Sorts the intervals.
This intervals are sorted by ascending lower boundary.
If the lower bounds are equal, sort on descending upper bound.


values

public List<TpInterval> values()
The values.

Returns:
the values

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.