get( ( , , , , set( , ( , , , , the adapter pattern classes are often written to provide similar functionality to other classes the adapter design pattern applies to any context where we want to modify an existing class so that its methods match those of relatedbut differentclass or interface one general way for applying the adapter pattern is to define the new class in such way that it contains an instance of the old class as hidden fieldand implement each method of the new class using methods of this hidden instance variable the result of applying the adapter pattern is that new class that performs almost the same functions as previous classbut in more convenient wayhas been created with respect to our discussion of the array list adtwe note that this adt is sufficient to define an adapter class for the deque adtas shown in table (see also exercise - table array list realization of deque by means of an deque method realization with array-list methods size()isempty(size()isempty(getfirst(get( getlast(