
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;
import net.jcip.annotations.Immutable;
/**
* @author tiwe
*
*/
@Immutable
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