All pastes #422406 Raw Edit

Plouj

public text v1 · immutable
·published 2007-04-03 13:21 UTC
rendered paste body
                HashSet<String> LeftHandSide;
                HashSet<String> RightHandSide;
...
                public boolean equals(Object obj) {
                        if(this == obj)
                                return true;
                        if((obj == null) || (obj.getClass() != this.getClass()))
                                return false;
                        // object must be FunctionalDependency at this point
                        FunctionalDependency FD = (FunctionalDependency)obj;
                        return LeftHandSide == FD.LeftHandSide &&
                                RightHandSide == FD.RightHandSide;
                }