Last change
on this file since 77 was
77,
checked in by psniegowski, 11 years ago
|
Add new java codebase.
|
File size:
358 bytes
|
Line | |
---|
1 | package com.framsticks.util; |
---|
2 | |
---|
3 | /** |
---|
4 | * @author Piotr Sniegowski |
---|
5 | */ |
---|
6 | public abstract class Task implements Runnable { |
---|
7 | |
---|
8 | protected final long moment; |
---|
9 | |
---|
10 | public Task() { |
---|
11 | moment = System.currentTimeMillis(); |
---|
12 | } |
---|
13 | |
---|
14 | public Task(long moment) { |
---|
15 | this.moment = moment; |
---|
16 | } |
---|
17 | |
---|
18 | public final long getMoment() { |
---|
19 | return moment; |
---|
20 | } |
---|
21 | |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.