de.swm.gwt.linker.PermutationArtifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swm-gwt-client Show documentation
Show all versions of swm-gwt-client Show documentation
Plain GWT Swm erweiterungen, auch zur benutzung in mobilen Geraeten
package de.swm.gwt.linker;
import java.util.Set;
import com.google.gwt.core.ext.Linker;
import com.google.gwt.core.ext.linker.Artifact;
import com.google.gwt.core.ext.linker.Transferable;
import de.swm.gwt.linker.server.BindingProperty;
/**
*
* @author Daniel Kurka (see http://code.google.com/p/mgwt/)
*
*/
@Transferable
public class PermutationArtifact extends Artifact {
private static final long serialVersionUID = -2097933260935878782L;
private final Set permutationFiles;
private final String permutationName;
private final Set bindingProperties;
public PermutationArtifact(Class extends Linker> linker, String permutationName, Set permutationFiles, Set bindingProperties) {
super(linker);
this.permutationName = permutationName;
this.permutationFiles = permutationFiles;
this.bindingProperties = bindingProperties;
}
@Override
public int hashCode() {
return permutationFiles.hashCode();
}
@Override
protected int compareToComparableArtifact(PermutationArtifact o) {
return permutationName.compareTo(o.permutationName);
}
@Override
protected Class getComparableArtifactType() {
return PermutationArtifact.class;
}
public Set getPermutationFiles() {
return permutationFiles;
}
public String getPermutationName() {
return permutationName;
}
public Set getBindingProperties() {
return bindingProperties;
}
}