public class Time extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Time>
Constructor and Description |
---|
Time(java.util.Date date) |
Time(double minutes) |
Time(int minutes) |
Time(int hours,
int minutes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Time time) |
double |
doubleValue() |
int |
getHoursFormattedHHMM()
returns only the hours part from hh:mm
|
int |
getIndustryMinutesFormatted()
returns only the minutes part from hh:mm this could be negative, use Math.abs(...)
|
java.lang.String |
getInputtedIndustryTimeFormatted() |
java.lang.String |
getInputtedTimeFormatted()
returns the value Formatted for the GUI.
|
java.util.Date |
getInputtedTimeFormattedAsDate() |
java.lang.Double |
getInputtedTimeFormattedAsIndustryValue()
returns the value Formatted in industry minutes.
|
java.lang.Double |
getInputtedTimeFormattedAsValue()
returns the value Formatted for the GUI.
|
java.lang.String |
getInputtedTimeFormattedLeadingZero() |
int |
getMinutes() |
int |
getMinutesFormattedHHMM()
returns only the minutes part from hh:mm this could be negative, use Math.abs(...)
|
void |
setInputtedTimeFormatted(java.lang.String time)
seto0
|
void |
setInputtedTimeFormattedAsDate(java.util.Date time) |
void |
setInputtedTimeFormattedAsValue(java.lang.Double time)
sets the Value by Parsing the Input from GUI
|
void |
setInputtedTimeFormattedForDate(java.lang.String datetime) |
void |
setMinutes(int minutes) |
void |
setTimeFormattedHHMM(int hours,
int minutes,
boolean positiveValue)
sets the full time value
|
java.lang.String |
toString() |
public Time(int hours, int minutes)
public Time(int minutes)
public Time(java.util.Date date)
public Time(double minutes)
public int getMinutes()
public void setMinutes(int minutes)
public int getMinutesFormattedHHMM()
public int getIndustryMinutesFormatted()
public int getHoursFormattedHHMM()
public void setTimeFormattedHHMM(int hours, int minutes, boolean positiveValue)
hours
- as intminutes
- as intpositiveValue
- as booleanpublic java.lang.String getInputtedTimeFormatted()
public java.lang.String getInputtedTimeFormattedLeadingZero()
public java.lang.String getInputtedIndustryTimeFormatted()
public java.lang.Double getInputtedTimeFormattedAsValue()
public java.lang.Double getInputtedTimeFormattedAsIndustryValue()
public java.util.Date getInputtedTimeFormattedAsDate()
public void setInputtedTimeFormattedAsDate(java.util.Date time)
public void setInputtedTimeFormatted(java.lang.String time)
time
- as Stringpublic void setInputtedTimeFormattedForDate(java.lang.String datetime)
public void setInputtedTimeFormattedAsValue(java.lang.Double time)
time
- as Doublepublic int compareTo(Time time)
compareTo
in interface java.lang.Comparable<Time>
public java.lang.String toString()
toString
in class java.lang.Object
public double doubleValue()
Copyright © 2018 DS Data Systems UK Ltd.