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

de.swm.gwt.linker.PermutationArtifact Maven / Gradle / Ivy

The newest version!
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 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;
        }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy