diff options
Diffstat (limited to 'src/com/android/tv/dvr/data/IdGenerator.java')
-rw-r--r-- | src/com/android/tv/dvr/data/IdGenerator.java | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/com/android/tv/dvr/data/IdGenerator.java b/src/com/android/tv/dvr/data/IdGenerator.java index 2ade1dad..496651ba 100644 --- a/src/com/android/tv/dvr/data/IdGenerator.java +++ b/src/com/android/tv/dvr/data/IdGenerator.java @@ -18,32 +18,22 @@ package com.android.tv.dvr.data; import java.util.concurrent.atomic.AtomicLong; -/** - * A class which generate the ID which increases sequentially. - */ +/** A class which generate the ID which increases sequentially. */ public class IdGenerator { - /** - * ID generator for the scheduled recording. - */ + /** ID generator for the scheduled recording. */ public static final IdGenerator SCHEDULED_RECORDING = new IdGenerator(); - /** - * ID generator for the series recording. - */ + /** ID generator for the series recording. */ public static final IdGenerator SERIES_RECORDING = new IdGenerator(); private final AtomicLong mMaxId = new AtomicLong(0); - /** - * Sets the new maximum ID. - */ + /** Sets the new maximum ID. */ public void setMaxId(long maxId) { mMaxId.set(maxId); } - /** - * Returns the new ID which is greater than the existing maximum ID by 1. - */ + /** Returns the new ID which is greater than the existing maximum ID by 1. */ public long newId() { return mMaxId.incrementAndGet(); } |