Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public final class Timestamp {
  2. private final long value;
  3.  
  4. public Timestamp(final long value) {
  5. this.value = value;
  6. }
  7.  
  8. public long getValue() {
  9. return value;
  10. }
  11. }
  12.  
  13. public final class Timestamp {
  14. private final long value;
  15.  
  16. public Timestamp(final long value) {
  17. this.value = value;
  18. }
  19.  
  20. public float getProgress() {
  21. return (SomeExternalPlace.getTimestamp() - value) / SomeFloatConstant;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement