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

io.protostuff.generator.html.StaticPage Maven / Gradle / Ivy

There is a newer version: 3.1.40
Show newest version
package io.protostuff.generator.html;

import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import java.io.File;

public class StaticPage {

    private String name;
    private File file;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        StaticPage page = (StaticPage) o;
        return Objects.equal(name, page.name)
                && Objects.equal(file, page.file);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(name, file);
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("name", name)
                .add("file", file)
                .toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy