Project Wonder 5.0

er.chronic.utils
Class Span

java.lang.Object
  extended by er.chronic.utils.Range
      extended by er.chronic.utils.Span

public class Span
extends Range

A Span represents a range of time. Since this class extends Range, you can use #begin and #end to get the beginning and ending times of the span (they will be of class Time)


Constructor Summary
Span(Calendar begin, Calendar end)
           
Span(Calendar begin, int field, float amount)
           
Span(long begin, long end)
           
 
Method Summary
 Span add(float seconds)
          Add a number of seconds to this span, returning the resulting Span
 Span add(long seconds)
          Add a number of seconds to this span, returning the resulting Span
 Calendar getBeginCalendar()
           
 Calendar getEndCalendar()
           
 Span subtract(long seconds)
          Subtract a number of seconds to this span, returning the resulting Span
 String toString()
           
 
Methods inherited from class er.chronic.utils.Range
contains, equals, getBegin, getEnd, getWidth, hashCode, isSingularity, subList
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Span

public Span(Calendar begin,
            int field,
            float amount)

Span

public Span(Calendar begin,
            Calendar end)

Span

public Span(long begin,
            long end)
Method Detail

getBeginCalendar

public Calendar getBeginCalendar()

getEndCalendar

public Calendar getEndCalendar()

add

public Span add(long seconds)
Add a number of seconds to this span, returning the resulting Span


add

public Span add(float seconds)
Add a number of seconds to this span, returning the resulting Span


subtract

public Span subtract(long seconds)
Subtract a number of seconds to this span, returning the resulting Span


toString

public String toString()
Overrides:
toString in class Range

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.