62 |
|
*/ |
63 |
|
private static final int MAX_ARRAY_SIZE = Integer.MAX_VALUE - 8; |
64 |
|
|
65 |
< |
// fields are non-private to simpify nested class access |
65 |
> |
// fields are non-private to simplify nested class access |
66 |
|
volatile Object[] array; |
67 |
|
final SequenceLock lock; |
68 |
|
volatile int count; |
795 |
|
// ReadMostlyVector-only methods |
796 |
|
|
797 |
|
/** |
798 |
< |
* Append the element if not present. |
798 |
> |
* Appends the element, if not present. |
799 |
|
* |
800 |
|
* @param e element to be added to this list, if absent |
801 |
|
* @return {@code true} if the element was added |