File tree 2 files changed +6
-6
lines changed
main/java/com/crossoverjie/actual
test/java/com/crossoverjie/actual
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 24
24
* Date: 02/02/2018 20:47
25
25
* @since JDK 1.8
26
26
*/
27
- public class AbstractMap extends java .util .AbstractMap {
27
+ public class LRUAbstractMap extends java .util .AbstractMap {
28
28
29
- private final static Logger LOGGER = LoggerFactory .getLogger (AbstractMap .class );
29
+ private final static Logger LOGGER = LoggerFactory .getLogger (LRUAbstractMap .class );
30
30
31
31
/**
32
32
* 检查是否超期线程
@@ -74,7 +74,7 @@ public class AbstractMap extends java.util.AbstractMap {
74
74
private volatile AtomicInteger size ;
75
75
76
76
77
- public AbstractMap () {
77
+ public LRUAbstractMap () {
78
78
79
79
80
80
arraySize = DEFAULT_ARRAY_SIZE ;
@@ -310,7 +310,7 @@ public String toString() {
310
310
311
311
312
312
/**
313
- * 摘抄自 HashMap 的 hash 实现
313
+ * copy HashMap 的 hash 实现
314
314
* @param key
315
315
* @return
316
316
*/
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public class AbstractMapTest {
10
10
11
11
@ Test
12
12
public void test (){
13
- AbstractMap map = new AbstractMap () ;
13
+ LRUAbstractMap map = new LRUAbstractMap () ;
14
14
map .put (1 ,1 ) ;
15
15
map .put (2 ,2 ) ;
16
16
@@ -22,7 +22,7 @@ public void test(){
22
22
}
23
23
24
24
public static void main (String [] args ) {
25
- AbstractMap map = new AbstractMap () ;
25
+ LRUAbstractMap map = new LRUAbstractMap () ;
26
26
map .put (1 ,1 ) ;
27
27
map .put (2 ,2 ) ;
28
28
You can’t perform that action at this time.
0 commit comments