Revision 866 org.gvsig.proj/branches/refactor2018/org.gvsig.proj/org.gvsig.proj.swing/org.gvsig.proj.swing.impl/src/main/java/org/gvsig/proj/swing/impl/history/History.java
History.java | ||
---|---|---|
20 | 20 |
* @param <E> |
21 | 21 |
*/ |
22 | 22 |
public class History<E> implements RecentHistory<E> { |
23 |
private static final int DEFAULT_MAX_SIZE = 8;
|
|
23 |
public static final int DEFAULT_MAX_SIZE = 8;
|
|
24 | 24 |
private final CopyOnWriteArrayList<E> historyArray; |
25 | 25 |
private final int maxSize; |
26 | 26 |
|
... | ... | |
33 | 33 |
this.maxSize = maxSize; |
34 | 34 |
} |
35 | 35 |
|
36 |
public History(List<E> values, int maxSize) { |
|
37 |
historyArray = new CopyOnWriteArrayList<E>(values); |
|
38 |
this.maxSize = maxSize; |
|
39 |
} |
|
40 |
|
|
36 | 41 |
/* (non-Javadoc) |
37 | 42 |
* @see org.gvsig.proj.swing.impl.history.IHistory#getMaxSize() |
38 | 43 |
*/ |
Also available in: Unified diff