All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mysema.codegen.model.Constructor Maven / Gradle / Ivy

/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 *
 */
package com.mysema.codegen.model;

import java.util.Collection;

public final class Constructor {

    private final Collection parameters;

    public Constructor(Collection params) {
        parameters = params;
    }

    @Override
    public boolean equals(Object o){
        if (o == this){
            return true;
        }else if (o instanceof Constructor){
            return ((Constructor)o).parameters.equals(parameters);
        }else{
            return false;
        }
    }

    public Collection getParameters() {
        return parameters;
    }

    @Override
    public int hashCode(){
        return parameters.hashCode();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy