@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        TransMode eq = (TransMode)obj;
        if (!super.equals(eq)){
            return false;
        }
        if(!Objects.equals(idMode, eq.idMode)) {
            return false;
        }
        return !(nameMode == null ? eq.nameMode != null : !nameMode.equals(eq.nameMode));
    }