@@ -62,7 +62,7 @@ public final class CacheUtils {
62
62
* <p>cache size: unlimited</p>
63
63
* <p>cache count: unlimited</p>
64
64
*
65
- * @return the single {@link CacheUtils} instance.
65
+ * @return the single {@link CacheUtils} instance
66
66
*/
67
67
public static CacheUtils getInstance () {
68
68
return getInstance ("" , DEFAULT_MAX_SIZE , DEFAULT_MAX_COUNT );
@@ -75,7 +75,7 @@ public static CacheUtils getInstance() {
75
75
* <p>cache count: unlimited</p>
76
76
*
77
77
* @param cacheName The name of cache.
78
- * @return the single {@link CacheUtils} instance.
78
+ * @return the single {@link CacheUtils} instance
79
79
*/
80
80
public static CacheUtils getInstance (final String cacheName ) {
81
81
return getInstance (cacheName , DEFAULT_MAX_SIZE , DEFAULT_MAX_COUNT );
@@ -87,7 +87,7 @@ public static CacheUtils getInstance(final String cacheName) {
87
87
*
88
88
* @param maxSize The max size, in bytes, of cache.
89
89
* @param maxCount The max count of cache.
90
- * @return the single {@link CacheUtils} instance.
90
+ * @return the single {@link CacheUtils} instance
91
91
*/
92
92
public static CacheUtils getInstance (final long maxSize , final int maxCount ) {
93
93
return getInstance ("" , maxSize , maxCount );
@@ -100,7 +100,7 @@ public static CacheUtils getInstance(final long maxSize, final int maxCount) {
100
100
* @param cacheName The name of cache.
101
101
* @param maxSize The max size, in bytes, of cache.
102
102
* @param maxCount The max count of cache.
103
- * @return the single {@link CacheUtils} instance.
103
+ * @return the single {@link CacheUtils} instance
104
104
*/
105
105
public static CacheUtils getInstance (String cacheName , final long maxSize , final int maxCount ) {
106
106
if (isSpace (cacheName )) cacheName = "cacheUtils" ;
@@ -114,7 +114,7 @@ public static CacheUtils getInstance(String cacheName, final long maxSize, final
114
114
* <p>cache count: unlimited</p>
115
115
*
116
116
* @param cacheDir The directory of cache.
117
- * @return the single {@link CacheUtils} instance.
117
+ * @return the single {@link CacheUtils} instance
118
118
*/
119
119
public static CacheUtils getInstance (@ NonNull final File cacheDir ) {
120
120
return getInstance (cacheDir , DEFAULT_MAX_SIZE , DEFAULT_MAX_COUNT );
@@ -126,7 +126,7 @@ public static CacheUtils getInstance(@NonNull final File cacheDir) {
126
126
* @param cacheDir The directory of cache.
127
127
* @param maxSize The max size, in bytes, of cache.
128
128
* @param maxCount The max count of cache.
129
- * @return the single {@link CacheUtils} instance.
129
+ * @return the single {@link CacheUtils} instance
130
130
*/
131
131
public static CacheUtils getInstance (@ NonNull final File cacheDir ,
132
132
final long maxSize ,
@@ -558,7 +558,7 @@ public Object getSerializable(@NonNull final String key, final Object defaultVal
558
558
/**
559
559
* Return the size, in bytes, of cache.
560
560
*
561
- * @return the size, in bytes, of cache.
561
+ * @return the size, in bytes, of cache
562
562
*/
563
563
public long getCacheSize () {
564
564
return mCacheManager .getCacheSize ();
@@ -567,7 +567,7 @@ public long getCacheSize() {
567
567
/**
568
568
* Return the count of cache.
569
569
*
570
- * @return the count of cache.
570
+ * @return the count of cache
571
571
*/
572
572
public int getCacheCount () {
573
573
return mCacheManager .getCacheCount ();
@@ -710,7 +710,7 @@ private boolean clear() {
710
710
/**
711
711
* Remove the oldest files.
712
712
*
713
- * @return the size, in bytes, of oldest files.
713
+ * @return the size, in bytes, of oldest files
714
714
*/
715
715
private long removeOldest () {
716
716
if (lastUsageDates .isEmpty ()) return 0 ;
0 commit comments