KosherJava Zmanim Homepage

net.sourceforge.zmanim.util
Class Zman

java.lang.Object
  extended by net.sourceforge.zmanim.util.Zman

public class Zman
extends Object

Wrapper class for an astronomical time, mostly used to sort collections of astronomical times.

Version:
1.0
Author:
© Eliyahu Hershfeld 2007-2011

Field Summary
static Comparator DATE_ORDER
           
static Comparator DURATION_ORDER
           
static Comparator NAME_ORDER
           
 
Constructor Summary
Zman(Date date, String label)
           
Zman(long duration, String label)
           
 
Method Summary
 long getDuration()
           
 Date getZman()
           
 Date getZmanDescription()
           
 String getZmanLabel()
           
 void setDuration(long duration)
           
 void setZman(Date date)
           
 void setZmanDescription(Date zmanDescription)
           
 void setZmanLabel(String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_ORDER

public static final Comparator DATE_ORDER

NAME_ORDER

public static final Comparator NAME_ORDER

DURATION_ORDER

public static final Comparator DURATION_ORDER
Constructor Detail

Zman

public Zman(Date date,
            String label)

Zman

public Zman(long duration,
            String label)
Method Detail

getZman

public Date getZman()

setZman

public void setZman(Date date)

getDuration

public long getDuration()

setDuration

public void setDuration(long duration)

getZmanLabel

public String getZmanLabel()

setZmanLabel

public void setZmanLabel(String label)

getZmanDescription

public Date getZmanDescription()
Returns:
the zmanDescription

setZmanDescription

public void setZmanDescription(Date zmanDescription)
Parameters:
zmanDescription - the zmanDescription to set

KosherJava Zmanim Homepage

Copyright © 2004 - 2011 Eliyahu Hershfeld. All Rights Reserved. Released under the GPL 2 license