uebung07
This commit is contained in:
13
uebung07/src/quantities/plain/TimeUnit.java
Normal file
13
uebung07/src/quantities/plain/TimeUnit.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package quantities.plain;
|
||||
|
||||
public class TimeUnit extends Unit{
|
||||
|
||||
public TimeUnit(String name, double baseFactor) {
|
||||
super(name, baseFactor);
|
||||
}
|
||||
|
||||
public static final TimeUnit SECOND = new TimeUnit("s", 1);
|
||||
public static final TimeUnit MINUTE = new TimeUnit("m", 60);
|
||||
public static final TimeUnit HOUR = new TimeUnit("h", 3600);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user