mirror of
https://github.com/corda/corda.git
synced 2025-06-12 20:28:18 +00:00
Added several useful classes
This commit is contained in:
5
classpath/java/util/Comparator.java
Normal file
5
classpath/java/util/Comparator.java
Normal file
@ -0,0 +1,5 @@
|
||||
package java.util;
|
||||
|
||||
public interface Comparator<T> {
|
||||
public int compare(T o1, T o2);
|
||||
}
|
17
classpath/java/util/Date.java
Normal file
17
classpath/java/util/Date.java
Normal file
@ -0,0 +1,17 @@
|
||||
package java.util;
|
||||
|
||||
public class Date {
|
||||
public final long when;
|
||||
|
||||
public Date() {
|
||||
when = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public Date(long when) {
|
||||
this.when = when;
|
||||
}
|
||||
|
||||
public long getTime() {
|
||||
return when;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user