function out = isEqualTo(h,src)

%   Copyright 2014 The MathWorks, Inc.

out = false;
if ~isequal( h, src )
    return
end
% Double check the handle properties
if ~h.Command.isEqualTo( src.Command )
    return
end
if ~h.Path.isEqualTo( src.Path )
    return
end
if ~h.Directives.isEqualTo( src.Directives )
    return
end
if ~h.FileExtensions.isEqualTo( src.FileExtensions )
    return
end
out = true;
end
