Code example for Collection

Methods: hashCode

0
    public Collection<Control> getControls() {
        return controls;
    } 
 
    public int hashCode() { 
        return controls.hashCode();
    } 
 
    private boolean equals(Object o1, Object o2) {
        if (o1 == null && o2 == null) return true;
        if (o1 != null) return o1.equals(o2);
        return o2.equals(o1);
    } 
 
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null) return false;
        if (object.getClass() != this.getClass()) return false;
 
        Request request = (Request)object;