/* +-------------+ | MTList | +-------------+ +-------------+ */ //to represent an empty list of ISame objects class MTList implements AList{ MTList(){} //is this empty list the same as that object public boolean same(ISame that){ return (that instanceof MTList); } //does this empty list contain that object public boolean contains(ISame that){ return false; } //is there an element in this list that satisfies pred public boolean anysuch(ISelect pred){ return false; } }