@Override
    public void add(int index, T element) {
        if (displacement != null) {
            super.add(index - displacement, element);
        } else {
            super.add(index, element);
        }
    }
@ Override public void add ( int index , T element ) { if ( displacement != null ) { super . add ( index - displacement , element ) ; } else { super . add ( index , element ) ; } }
Inherited from ArrayList
@param index
@param element